在WP8.1上没有为WP8应用程序调用UnhandledException [英] UnhandledException not getting called for WP8 application on WP8.1

查看:87
本文介绍了在WP8.1上没有为WP8应用程序调用UnhandledException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


Microsoft  建议 运行
WP8应用程序直接在WP8.1上作为选项之一。

但是,我面临WP8应用程序的这个错误。

Microsoft suggests running WP8 application directly on WP8.1 as one of the options.
However, I am facing this error for WP8 application.


底层代码只是为UnhandledException附加处理程序:

Underlying code is just attaching handler for UnhandledException:

 public App()
    {
        // Global handler for uncaught exceptions.
        UnhandledException += Application_UnhandledException;
    }



    // Code to execute on Unhandled Exceptions
    private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
    {


此方法在使用WP8的设备上运行此WP8时会被调用,但如果我尝试在WP8.1手机上运行此版本,则不会调用它。


This method gets called when running this WP8 on device with WP8, but this doesn't get called if I try to run this build on WP8.1 phone.

推荐答案

在某些情况下,处理程序不会被调用。 这是一个已知问题。
There are some cases when the handler will not get called.  This is a known issue.


这篇关于在WP8.1上没有为WP8应用程序调用UnhandledException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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