MFC CLR 项目上的调试断言错误
在关闭 mfc clr 应用程序时,我收到消息:
这是什么意思?我该如何解决它?
On closing mfc clr application, I've got message :
What it means ? How can I fix it ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这几乎肯定是程序代码中某处的内存损坏问题。
例如,您将一百个字节复制到一个二十字节的数组中,覆盖了不相关变量或结构中的一些重要信息。
事实上,该断言来自 Microsoft 运行时库(Microsoft 及其数百万客户都对这些库进行了非常彻底的测试),这意味着问题可能出在其他地方,并且该问题的影响此时错误刚刚被捕获。
您需要非常彻底地检查您的代码,以尝试找出可能发生此类内存损坏的位置。
This is almost certainly a memory corruption issue somewhere in your program code.
For example, you have copied a hundred bytes into a twenty-byte array, overwriting some vital information in an unrelated variable or structure.
The fact that the assertion is coming from the Microsoft run time libraries (which have been very thoroughly tested, both by Microsoft and millions of their customers) means that the issue is probably elsewhere, and the effects of that error are just being caught at this point.
You need to examine your code very thoroughly to try and find out where such a memory corruption could occur.