Sunday, April 3, 2011

Implementing a stack trace on Windows

Hello everyone,

I'm implementing a crash reporting tool for a game I'm writing, and I'd like to provide a (fairly) detailed native stack trace for the report. I've already implemented this on GNU/Linux, but I'm having trouble on Windows. Here's some sample code I tried to get working:

http://pastebin.com/m30b50f76

Each time I call SymFromAddr, I get the error "Attempt to access invalid address." Does anyone have experience with using StackWalk64/SymFromAddr and their kin?

Thanks, Rob

From stackoverflow

0 comments:

Post a Comment