本文介绍了在Windows中检测内存损坏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我通过以下语句创建了内存损坏:
I created a memory corruption by the following statement:
char *msg = "Default message";
free(msg);
这将导致内存损坏异常,如下所示:
This causes the memory corruption exception as:
Break instruction exception - code 80000003 (first chance)
如何使用Windbg在Windows中检测和调试内存损坏问题?
How to detect and debug memory corruption issues in Windows probably using Windbg? What all are the windbg commands needed?
推荐答案
这篇关于在Windows中检测内存损坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!