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