private static void CurrentDomain_UnhandledException( object sender, UnhandledExceptionEventArgs e) { Exception exceptionObject = e.ExceptionObject as Exception; MyMain.record_crash(exceptionObject.Message, exceptionObject.ToString()); }
private static void Application_ThreadException(object sender, ThreadExceptionEventArgs e) { Exception exception = e.Exception; MyMain.record_crash(exception.Message, exception.ToString()); }