Exemple #1
0
 public static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)
 {
     if (@internal)
     {
         return;
     }
     @internal = true;
     try
     {
         Ionsole.Write(e.Exception);
     }
     catch { }
     @internal = false;
 }
Exemple #2
0
        private static void CurrentDomain_FirstChanceException(object sender, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs e)
        {
            if (@internal)
            {
                return;
            }
            @internal = true;

            try
            {
                WriteSeparator("Handled Exception", '-');
                Ionsole.Write(e.Exception);
                WriteSeparator(null, '-');
            }
            catch { }
            @internal = false;
        }