申请终止后的例外情况 [英] Exception post application termination

查看:122
本文介绍了申请终止后的例外情况的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在Windows Mobile 5设备(Symbol MC70)上遇到CF 2.0应用程序的问题。应用程序正在引发异常,但很难在主方法完成后识别异常。因为它发生在main()之后,Application.Run周围的try-catch不会捕获异常。在应用程序终止时没有运行后台线程。

MC70上的异常有点间歇性但在运行Windows Mobile 5或6的其他移动设备上似乎不会发生。此时我对任何建议持开放态度关于可能的原因或调试方法(Visual Studio调试器在引发异常之前断开连接)。

提前感谢您提供的任何帮助。

Hi,

I'm having an issue with a CF 2.0 application on a Windows Mobile 5 device (Symbol MC70). The application is causing an exception to be raised but it is difficult to identify the exception as it occurs after the main method has completed. As it occurs post-main() a try-catch around Application.Run will not catch the exception. There are no background threads running on application termination.

The exception is somewhat intermittent on the MC70 but does not appear to occur on other mobile devices running Windows Mobile 5 or 6. At this point I am open to any suggestions on possible causes or ways to debug (the Visual Studio debugger disconnects before the exception is raised).

Thanks in advance for any help you can offer.

推荐答案

你能否在 AppDomain UnhandledException事件

Could you catch the exception in the AppDomain.UnhandledException Event?


这篇关于申请终止后的例外情况的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆