Minidump method to preserve the crash site of the program

The introduction part is transferred from https://www.cnblogs.com/lisuyun/p/5245609.html Parts of the program are original. Minidump way to save the program crash site When using C++ to develop applications under the Windows platform, the last thing you want to see is that the program crashes. To solve the bugs that cause problems, the most difficult thing is to debug the release version. Because the release version lacks a lot of debugging information, not to mention that it is generally released for use by users, it is difficult to retain and reproduce the scene of the crash. There are currently some ways to solve it: crash address + MAP file; MAP file; SetUnhandledExceptionFilter + Minidump. This article focuses on the SetUnhandledExceptionFilter + Minidump method. 1. Minidump file generation 1. Minidump concept minidump (small memory dump) can be understood as a dump file, which records the minimum useful information that can help debug crash. In fact, if you select “Small memory dump (64 KB)” in System Properties -> Advanced -> Startup and Recovery -> Settings -> Write Debug Information, when the system stops unexpectedly, it will be in C:\ A file with a .dmp suffix is ​​generated under the Windows\Minidump\ path. This file is…

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索