Inherited WPF application sets up Dispatcher.UnhandledException in App.xaml.cs:
public App() : base()
{
this.Dispatcher.UnhandledException += OnDispatcherUnhandledException;
}
Except am occasionally getting "program has stopped working" without OnDispatcherUnhandledException being called. As per much discussion in other threads, am adding the following:
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
but do not understand how that helps. Can anyone explain the difference between Dispatcher and CurrentDomain UnhandledException?