Example #1
0
        /// <summary>
        /// Handle unhandled exceptions which are not in the UI thread
        /// </summary>
        private static void CrashHandlerDomain(object sender, UnhandledExceptionEventArgs args)
        {
            Exception exception = (Exception)args.ExceptionObject;

            Dialogs.CrashNotification(exception.Message + "\n\nStack Trace: " + exception.StackTrace);
            Application.Exit();
        }
Example #2
0
 /// <summary>
 /// Handle unhandled exceptions in the UI thread
 /// </summary>
 private static void CrashHandlerUI(object sender, System.Threading.ThreadExceptionEventArgs args)
 {
     Dialogs.CrashNotification(args.Exception.Message + "\n\nStack Trace: " + args.Exception.StackTrace);
     Application.Exit();
 }