您的位置:首页 > 其它

How to use windbg to detect memory leak

2011-11-23 16:57 1041 查看
Detecting memory leaks with WinDBG the modern (and free) way

http://cfc.kizzx2.com/index.php/detecting-memory-leaks-with-windbg-the-modern-and-free-way/

detailed instruction: Memory Leak Detection Using Windbg

http://www.codeproject.com/KB/cpp/MemoryLeak.aspx

simple instruction: Heap Debugging (Memory/Resource Leak) with WinDbg

http://hacksoflife.blogspot.com/2009/06/heap-debugging-memoryresource-leak-with.html

gflags /i leak.exe +ust

windbg -g leak.exe

gflags /i leak.exe -ust

In Windbg, you can check statck with below way:

{80} normal block at 0x003B4378, 8000 bytes long. Data: < > CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD

!heap -p -a 0x003B4378
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: