calmdump is a crash reporting component for Windows console application.
[calmdump] 1 takes the core exception handling code in [crashrpt] 2, without screen capturing, file compression, video recording or anything else for client-only usage.
[calmdump] 1 aims to be a lightweight component of a C++ server-end software, mostly used for crash debugging case, when our server app crashes, calmdump collect the minidump file and print stack information to a specified file. that's what it do and what it don't do.
#include <Windows.h>
#include <CrashRpt.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR lpCmdLine, int nCmdShow)
{
crInstall(); // this API handles everything
// do your own job
}
- Obtain premake5(http://premake.github.io/download.html)
- Type
premake5 vs2013
to generate Visual C++ solution files
A Crash Course on the Depths of Win32™ Structured Exception Handling
Programming against the x64 exception handling support
Structure Exception Handling in Windows NT (in Chinese)