首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

,C++运行异常 Press retry to debug the application

2012-03-27 
求助,C++运行错误Press retry to debug the application今天做了一个C++程序,,调试,,输出都没有错误,但在

求助,C++运行错误 Press retry to debug the application
今天做了一个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已触发了一个断点

继续之后显示错误在这
[code=C/C++][/code]
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));
  }


求助路过的高手帮忙解决一下,,,,,,,,小弟非常感谢!!!!!!

[解决办法]
堆内存读写越界
楼主看一下那个地方越界了
就这一段什么都看不出来

热点排行