Ejemplo n.º 1
0
        private static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)
        {
            Exception ex           = e.Exception;
            string    traceLog     = ex.StackTrace;
            string    errorMessage = ex.Message;

            frmErrorReport report = new frmErrorReport(errorMessage, traceLog);

            report.ShowDialog();
        }
Ejemplo n.º 2
0
        private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
        {
            Exception ex           = (Exception)e.ExceptionObject;
            string    traceLog     = ex.StackTrace;
            string    errorMessage = ex.Message;

            frmErrorReport report = new frmErrorReport(errorMessage, traceLog);

            report.ShowDialog();
        }