For information on how your program can cause an assertion failure的解决方法

今天写栈的代码的时候出现了如下没见过的bug

在这里插入图片描述
内容是:
Microsoft Visual C++ Runtime Library

Debug Assertion Failed!

Program:
File: f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\filecore.cpp
Line: 179

For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.

(Press Retry to debug the application)
查了半天发现是野指针的问题(释放了数组中的节点的空间后在此对其进行访问),删除该段语句即可

猜你喜欢

转载自blog.csdn.net/weixin_51235620/article/details/114983874
今日推荐