admin管理员组

文章数量:1532199

现象

程序中断无法正常退出,出现报错信息:

Critical error detected c0000374
testing.exe 已触发了一个断点。

原因

内存赋值越界,造成堆被破坏

解决

查找代码中上个内存分配的位置,在长度加1,正常。问题解决。

	Stack* Sresult = (Stack*)malloc(sizeof(Stack)+1);
	Stack* Sop = (Stack*)malloc(sizeof(Stack)+1);

参考信息

VC Critical error detected c0000374 崩溃问题及解决

本文标签: ErrorCriticaldetected