求助malloc导致崩溃!!!
操作系统:winXP
cpu: Intel(R) Pentium(R) Dual CPU
RAM: 2.00GHz
IDE: VC6.0
调用形式如下:
pv = malloc(size);
崩溃时,调用栈信息:
....
NTDLL! 7c96b3a2()
NTDLL! 7c93aa2b()
_heap_alloc_base(unsigned int 17472) line 200
_heap_alloc_dbg(unsigned int 17427, int 1, const char * 0x00000000, int 0) line 378 + 9 bytes
_nh_malloc_dbg(unsigned int 17427, int 0, int 1, const char * 0x00000000, int 0) line 248 + 21 bytes
malloc(unsigned int 17427) line 130 + 21 bytes
Debug窗口输出:
Heap corruption detected at 02ECDC50
HEAP[*.exe]: HEAP: Free Heap block 2ecdc48 modified at 2ecdc58 after it was freed