protected override void OnUnhandledException(object sender, System.Windows.ApplicationUnhandledExceptionEventArgs e)
 {
     if (Debugger.IsAttached)
     {
         Debugger.Break();
     }
 }
Esempio n. 2
0
 // Code to execute on Unhandled Exceptions
 private void Application_UnhandledException(object sender, System.Windows.ApplicationUnhandledExceptionEventArgs e)
 {
     if (System.Diagnostics.Debugger.IsAttached)
     {
         // An unhandled exception has occurred; break into the debugger
         System.Diagnostics.Debugger.Break();
     }
 }
Esempio n. 3
0
        protected override void OnUnhandledException(object sender, System.Windows.ApplicationUnhandledExceptionEventArgs e)
        {
            base.OnUnhandledException(sender, e);

            if (!Debugger.IsAttached)
            {
                Debugger.Launch();
            }
        }
Esempio n. 4
0
        protected override void OnUnhandledException(object sender, System.Windows.ApplicationUnhandledExceptionEventArgs e)
        {
            MessageBoxViewModel message = new MessageBoxViewModel();

            message.DisplayName  = AppStrings.ApplicationErrorWindowTitle;
            message.Header       = ErrorStrings.GenericErrorMessageHeader;
            message.Message      = ErrorStrings.GenericErrorMessage;
            message.Buttons      = MessageBoxButtons.OK;
            message.MessageLevel = MessageLevel.Error;
            IoC.Get <IWindowManager>().ShowDialog(message);
            e.Handled = true;
        }
Esempio n. 5
0
        protected override void OnUnhandledException(object sender, System.Windows.ApplicationUnhandledExceptionEventArgs e)
        {
            try
            {
                var analytics = (IAnalyticsService)this.container.GetInstance(typeof(IAnalyticsService), null);
                analytics.AppCrash(e.ExceptionObject);
            }
            catch (Exception)
            {
                // Ignore errors when logging
            }

            base.OnUnhandledException(sender, e);
        }
 protected override void OnApplicationUnhandledException(System.Windows.ApplicationUnhandledExceptionEventArgs e)
 {
     ProcessError("OnApplicationUnhandledException", e.ExceptionObject);
 }
 protected override void OnUnhandledException(object sender, System.Windows.ApplicationUnhandledExceptionEventArgs e)
 {
     System.Windows.MessageBox.Show("unhandled exception: " + e.ExceptionObject.Message);
     e.Handled = true;
     base.OnUnhandledException(sender, e);
 }
Esempio n. 8
0
 protected override void OnUnhandledException(object sender, System.Windows.ApplicationUnhandledExceptionEventArgs e)
 {
     base.OnUnhandledException(sender, e);
     Console.WriteLine(e);
 }
Esempio n. 9
0
 protected override void OnUnhandledException(object sender, System.Windows.ApplicationUnhandledExceptionEventArgs e)
 {
     //base.OnUnhandledException(sender, e);
     e.Handled = true;
 }
Esempio n. 10
0
 protected override void OnUnhandledException(object sender, System.Windows.ApplicationUnhandledExceptionEventArgs e)
 {
 }