Frage

I'm very new on debugging dumps so still have some questions.

I've read some questions about debugging dumps and now I've attached my code to dump and can see some values of variables.

My question is how to preview raw heap data. I want this because dump is very big, over 4GB so somewhere is a big memory leak, what probably caused the crash. So will be looking for some strings what left.

BTW. I'm coding with C++ and use Visual Studio 2012 for debugging, but I can download some other programs :)

War es hilfreich?

Lösung

You should use WinDbg and the !heap command to inspect the Win32 heaps in your process. There are many variations of this command that you could find useful: !heap -s -h 0 will give you statistics, !heap -h 0 will list all the blocks in all the heaps, etc.

You might also want to consider my heap_stat.py debugger script, which will try to search heap memory for objects that have vtable pointers and thus identify what category of objects is taking lots of heap space.

https://github.com/goldshtn/windbg-extensions/blob/master/heap_stat.py

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top