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

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

    You can trigger a mini-dump by setting a handler for uncaught exceptions. Here's an article that explains all about minidumps

    Google actually implemented their own open source crash handler called BreakPad, which also mozilla use I think (that's if you want something more serious - a rich and robust crash handler).

提交回复
热议问题