这是内存越界写入导致的错误,一般在debug会报错,release版本中可能并不报错.
int main()
{
char * _char = new char[10];
//这里i==10时,数组访问越界了
for (int i = 0; i <= 10; ++i)
{
_char[i] = i;
}
delete[] _char;
return 0;
}
转载于:https://www.cnblogs.com/lkpp/p/HEAP-CORRUPTION-DETECTED.html
相关资源:解决报错heap corruption detected after normal block.zip