DEBUG信息如下:Detected memory leaks!
Dumping objects ->
{639} normal block at 0x06FCD2A0, 311929 bytes long.
Data: <1 1847 2 System > 31 00 31 38 34 37 00 32 00 53 79 73 74 65 6D 00
{634} normal block at 0x06FCAB18, 9844 bytes long.
Data: < > CD CD CD CD A2 D2 FC 06 A9 D2 FC 06 CD CD CD CD
Object dump complete.
The thread 0xC24 has exited with code 2 (0x2).
Dumping objects ->
{639} normal block at 0x06FCD2A0, 311929 bytes long.
Data: <1 1847 2 System > 31 00 31 38 34 37 00 32 00 53 79 73 74 65 6D 00
{634} normal block at 0x06FCAB18, 9844 bytes long.
Data: < > CD CD CD CD A2 D2 FC 06 A9 D2 FC 06 CD CD CD CD
Object dump complete.
The thread 0xC24 has exited with code 2 (0x2).
查找所有的delete和free信息
看哪些没有对应起来
2, 只能指针
0x06FCAB18, 9844
根据给出的地址和缓冲区大小,应该大致可以知道是什么地方分配的了吧。然后修改代码。
我可没有new过311929这么大的缓冲啊
装boundschecker来检查,