Struggling with an error that freezes the app and only occurs on the tablet (never on my laptop). Seems to be related to quickly switching the hamburger menu. I got one stack trace that incriminated a 3rd party control, but 9 of 10 times all I get is the following. There are only a couple of "async void"s where I can't avoid them (overriding events) and from other logging, I believe the issue is in the XAML (methods are logging entry/exit):
Unspecified error : System.Runtime.InteropServices.COMException (0x80004005): Unspecified error
Unspecified error at Windows.ApplicationModel.Core.UnhandledError.Propagate() at Oceaneering.Commons.Utilities.Logger.CoreApplication_UnhandledErrorDetected(Object sender, UnhandledErrorDetectedEventArgs e)
Setting up like this:
CoreApplication.UnhandledErrorDetected += CoreApplication_UnhandledErrorDetected;
And the receiving method is:
try {
e.UnhandledError.Propagate();
}
catch (Exception ex){
logChannel.LogMessage(string.Format("Unhandled Exception: {0}:{1}", ex.Message, ex.ToString()));
SaveToFileAsync().Wait();
}
Anything else I can do to gather more info? Thanks!