How to create minidump for my process when it crashes?
You need to programatically create a minidump (with one exception, see next link). CodeProject has a nice article on MiniDumps. Basically, you want to use dbghelp.dll, and use the function MiniDumpWriteDump() (see MSDN on MiniDumpWriteDump). How effective such dumps are depends very much on the application. Sometimes, for optimized binaries, they are practically useless. Also, … Read more