When is DispatcherUnhandledException and AppDomain.UnhandledException insufficient (WPF application)?

I connected both of them, but sometimes my application still crashes and just calls the Windows “exception occurred” dialog. When I click OK, the application just exits. Under what circumstances will the exceptions not occur with these two handlers (in a WPF application)?

I should mention that I am doing a bunch of COM interactions, so I always suspect :-)

+3
source share
2 answers

There are several reasons why an unhandled exception will not be raised by any of them.

Dispatcher.UnhandledException , , Invoke BeginInvoke (). , , , .

.Net 4.0, AppDomain.UnhandledException. , , .

, . - , .

+3

.NET . , CLR, , , , . StackOverflowException. Microsoft , , ​​ . .

+3

Source: https://habr.com/ru/post/1761763/


All Articles