Ejemplo n.º 1
0
        private static void CurrentDomain_UnhandledException(
            object sender,
            UnhandledExceptionEventArgs e)
        {
            Exception exceptionObject = e.ExceptionObject as Exception;

            MyMain.record_crash(exceptionObject.Message, exceptionObject.ToString());
        }
Ejemplo n.º 2
0
        private static void Application_ThreadException(object sender, ThreadExceptionEventArgs e)
        {
            Exception exception = e.Exception;

            MyMain.record_crash(exception.Message, exception.ToString());
        }