private static void UnhandledExceptionHandler(object sender, DispatcherUnhandledExceptionEventArgs e) { e.Handled = true; Application.Current.Dispatcher.BeginInvoke(DispatcherPriority.Normal, new DispatcherOperationCallback(delegate { Crash crash = new Crash(e.Exception.Message + e.Exception.StackTrace); crash.Show(); return(null); }), null); }
private static void UnhandledExceptionHandler(object sender, DispatcherUnhandledExceptionEventArgs e) { e.Handled = true; Application.Current.Dispatcher.BeginInvoke(DispatcherPriority.Normal, new DispatcherOperationCallback(delegate { Crash crash = new Crash(e.Exception.Message + e.Exception.StackTrace); crash.Show(); return null; }), null); }