private void UnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e) { Debug.WriteLine("Unhandled exception in AA Wings UI thread"); Debug.WriteLine("{0}", e.Exception); }