码迷,mamicode.com
首页 > 移动开发 > 详细

C语言错误: CRT detected that the application wrote to memory after end of heap buffer

时间:2016-06-18 23:47:57      阅读:217      评论:0      收藏:0      [点我收藏+]

标签:

CRT detected that the application wrote to memory after end of heap buffer

多是中间对其进行了一些操作,在程序结束处,释放内存的时候,引起错误:



HEAP CORRUPTION DETECTED:after Normal block(#***) at 0x****.CRT detected that application wrote memory after end of heap buffer.


错误原因:


以对内在操作的过程中,所写的地址超出了,所分配内在的边界

memcpy的时候, copy的大小超出了目标数组的大小

C语言错误: CRT detected that the application wrote to memory after end of heap buffer

标签:

原文地址:http://www.cnblogs.com/zhanggaofeng/p/5597117.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!