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

后端 未结 7 711
不知归路
不知归路 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:32

    CrashFinder can help you locate the place of the exception given the DLL and the address of the exception reported.
    You can take this code and integrate it into your application to have a stack trage automatically generated when there is an uncaught exception. This is generally performed using __try{} __except{} or with a call to SetUnhandledExceptionFilter which allows you to specify a callback to all unhandled exceptions.

提交回复
热议问题