I have an application that unexpectedly terminates sometimes, despite having handlers for AppDomain.CurrentDomain.UnhandledException, Application.Current.DispatcherUnhandledException, TaskScheduler.UnobservedTaskException.
This is a WPF application with lots of P / Invoke interaction code. I created a "secure network" with handlers for all the events of the "last case" (see above). But the application still does not work with the standard Windows dialog box, in which my entire handler is missing.
What could be the reason for closing the .net application and an AppDomain.CurrentDomain.UnhandledException exception?
Can such an exception be in an unmanaged thread? If so, what can I do with it?
source
share