I need to programatically(C#) generate crash dump. The only method i know is to subscribe to the event UnhandledException. However my handler does NOT get hit. Code follows:
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
Application.ThreadException += Application_ThreadException;
Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
}
Application is WinForm based. I need to generate the full memory dumps without showing any actions to my users. The APIs used are of Dbghelp ones but it only generates minidumps. Therefore it would ALSO be helpful to know of any other APIs to use which can generate full memory dumps.