I am writing an WPF app and annoyed by an unhandled exception that can't be caught by any of my try blocks. So I added these two mighty exception handlers in my app.xml.cs:
this.Dispatcher.UnhandledException += Application_DispatcherUnhandledException;
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
But they don't work for me. I am still getting this crash: App has stopped working, problem event name: APPCRASH, fault module name: clr.dll
What do I do now to find the problem? I seem to have already put try/catch blocks wherever possible.
Thanks in advance.