开发者

AppDomain.UnhandeledException event not fired

开发者 https://www.devze.com 2022-12-31 07:04 出处:网络
In a WPF application, the app simply crashes, without the above event being fired. (I\'m also registered to DispatcherUnhandeledException, which doesn\'t fire as well.)

In a WPF application, the app simply crashes, without the above event being fired.

(I'm also registered to DispatcherUnhandeledException, which doesn't fire as well.)

I conclude that it doesn't fire since the handler is defined to place a log entry. When looking at the log, there's no corresponding entry.

It h开发者_如何学Cappens in a production environment; I'm unable to point at a particular scenario.

I've read few descriptions on scenarios where this might happen, but I still don't have a clear grasp on this. Can anyone share his experience / knowledge on this?

How can I find the root of the crash and solve it?

Many thanks.


Common causes for this would be a StackOverflowException or an OutOfMemoryException. To find the cause you could attach the Visual Studio Debugger and enable all Exceptions in the Exceptions window. You will then be prompted when any exception occurs in your application.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号