close
ERROR:
after Normal block (#260) at 0x00452508.
CRT detected that the application wrote to memory after end of heap buffer.
原因:宣告的記憶體跟刪除的記憶體大小不一致
Ex:
pass:
char* p=new char[6];
strcpy(p,"aaaaa");
delete[] p;
fail:
char* p=new char[5];
strcpy(p,"aaaaa");
delete[] p;
全站熱搜
留言列表