You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The recommended behaviour of Windows Store apps is that if an exception occurs, the app is supposed to immediately close and redirect you to the Start screen. (The fact that the app has disappeared is supposed to tip the user off to the fact that an error has occurred.)
The GlobalCrashHandler can be used to ensure that a FATAL log entry is written if an unhandled exception occurs.
public App()
{
this.InitializeComponent();
this.Suspending += OnSuspending;
// setup the global crash handler...
GlobalCrashHandler.Configure();
}
The operation of this method is to: write a FATAL entry, wait until all of the targets have finished writing, then call Application.Exit.