How to get a stack trace when C++ program crashes? (using msvc8/2005)

后端 未结 7 713
不知归路
不知归路 2021-02-09 13:44

Sometimes my c++ program crashes in debug mode, and what I got is a message box saying that an assertion failed in some of the internal memory management routines (accessing una

7条回答
  •  执念已碎
    2021-02-09 14:29

    You can use Poppy for this. You just sprinkle some macros across your code and it will gather the stack trace, together with the actual parameter values, local variables, loop counters, etc. It is very lightweight so it can be left in the release build to gather this information from crashes on end-user machines

提交回复
热议问题