开发者

AppDomain.UnhandeledException event not fired

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜