When my process crashes, how can I print to log a core dump file stack, C++ over Windows? I know that in Unix there is a way to do it using some signal handlers but never did it myself. How can I do it in Windows (prefer not to use ACE)?
Upvotes: 0
Views: 4221
Reputation: 22030
If you're looking for a stack walker, take a look at this one, created by Jochen Kalmbach. When run, it will let you log the stack trace in whatever way you like. The common way, however, is to ask Windows to create a dump (either full or mini).
Upvotes: 0
Reputation: 281875
The Windows equivalent of a core dump is called a Minidump, and you can write one using MiniDumpWriteDump. There's an article about on codeproject here: http://www.codeproject.com/KB/debug/postmortemdebug_standalone1.aspx
Upvotes: 2