private void Dispatcher_UnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e) { e.Handled = true; if (e.Exception is XamlParseException) { if (e.Exception.InnerException != null) { if (e.Exception.InnerException is FileLoadException) { return; } } } var crash = new ErrorReport(e.Exception); crash.Show(); }
void TaskScheduler_UnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs e) { e.SetObserved(); MeCore.Invoke(new Action(()=> { var crash = new ErrorReport(e.Exception); crash.Show(); })); }
private void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) { var crash = new ErrorReport(e.ExceptionObject as Exception); crash.Show(); }