This topic has been archived. It cannot be replied.
-
工作学习 / 事业与工作 / 求教各位VC++程序员一个问题,当delete一个new 的object 时,总是crash,怎么也找不到原因,忙活了好几天了,就要快崩溃了,请各位帮忙分析分析。多谢了。
-van99(van2000);
2002-10-21
{115}
(#810538@0)
-
post your code up here
-jps(drifter);
2002-10-22
(#810936@0)
-
已经DELETE掉了
-bugkiller(bugkiller);
2002-10-22
(#811786@0)
-
check your class constructor and destructor for some clue. maybe some pointer is not properly initialized, when try to free the memory pointed by such pointer, the program will crash. HTH.
-lusi(丑小鸭);
2002-10-22
(#811792@0)
-
别delete了。
-gettext(gettext);
2002-10-22
(#812000@0)
-
检测是否将一个指针删除了2次,第2次DELETE是对无效地址操作,自然CRASH。 DEBUG办法:跟踪到一半,对认为有问题的指针加内存地址改变的断点,如果对次地址内存操作了,程序会停在执行这个操作的代码处
-kevin_qfz(幸福的在家发呆);
2002-10-23
(#812746@0)