今天做了一个C++程序,,调试,,输出都没有错误,但在程序运行的最后却出Debug Error
Program:g:\vc++\图的遍历\debug\图的遍历.exe
HEAP CORRUPTION DETECTED:after Normal block (#145)at
0x005A4248
CRT detected that the application wrote to memory after end of
heap buffer
(press Retry to debug the application)
提示: 图的遍历.EXE已触发了一个断点
继续之后显示错误在这
dbgheap.c
else
{
_RPT3(_CRT_ERROR, "HEAP CORRUPTION DETECTED: after %hs block (#%d) at 0x%p.\n"
"CRT detected that the application wrote to memory after end of heap buffer.\n",
szBlockUseName[_BLOCK_TYPE(pHead->nBlockUse)],
pHead->lRequest,
错误显示在这 (BYTE *) pbData(pHead));
}
求助路过的高手帮忙解决一下,,,,,,,,小弟非常感谢!!!!!!