Esempio n. 1
0
        private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
        {
            try
            {
                ExceptionsHandler.HandleException((Exception)e.ExceptionObject);
            }
            catch
            {
            }

            DialogResult dr = MessageBox.Show("An unexpected error has occurred.\r\nWould you like to report this error?\r\n\r\n(private data will NOT be sent!)", "Error Detected!", MessageBoxButtons.YesNo);

            if (dr == DialogResult.Yes)
            {
                ExceptionsHandler.FlushExceptions();
            }
        }