Handle error at non-UI thread
- by DreamTeam Mobile
For some reason unhandled exception which occur at non-UI thread don't handled by App_UnhandledException handler.
This approach works well for Windows Phone apps to globally handle, track and analyze exceptions but doesn't work for Windows 8 apps.
this.UnhandledException += App_UnhandledException; //doesn't handle
private void Button_Click_1(object sender, RoutedEventArgs e)
{
var task = new Task(() => { throw new NullReferenceException("Test exc in UI thread"); });
task.Start();
}
Please, advise.