Click here to Skip to main content
15,894,180 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I built test.exe which will crash and generate .dmp file using MinidumpWriteDump, and parser.exe is used to read and print information from that dmp file.

In parser.exe I use StackWalk64 to get all stack traces of all threads in that dmp file. But now I found that I can only get less stacks than that visual studio did.

I've tried all solutions I could find in google、stackoverflow、codeproject, nothing changed.

The following is what parser.exe do:

1. SymInitialize
2. MiniDumpReadDumpStream to read all information
3. SymLoadModuleEx & SymFindFileInPath to load pdb/exe/dll specified in .dmp file
4. Initialize STACKFRAME64 and call StackWalk64 in loop.

I want to know how to get the same count of stack as visual studio. I could paste more code here if needed. Any help will be appreciated.
Posted
Updated 29-Jul-13 5:13am
v2
Comments
xSlavik 1-Sep-15 15:52pm    
Hello, i'm trying to implement same functionality (reading call stack from dump files). Can you share source of parser.exe? I just need exmple on how do i need to call StackWalk64. I assume that i need to pass memory read MiniDumpReadDumpStream as hProcess parameter and provide custom implementation of read memory callbacks...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900