从任务导航回时,Windows Phone应用程序崩溃 [英] Windows Phone app crashes when navigating back from a task

查看:75
本文介绍了从任务导航回时,Windows Phone应用程序崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序中的某些页面允许用户单击超链接以通过WebBrowserHelper启动外部浏览器.

Some pages in my app allow users to click a hyperlink to launch the external browser via a WebBrowserHelper.

我正在认真地将应用程序状态保存在OnNavigatedFrom中,并在OnNavigatedTo中还原它,但是当用户从Web浏览器导航回我的应用程序时,该应用程序挂起,然后崩溃.

I'm carefully saving the app state in OnNavigatedFrom and restoring it in OnNavigatedTo, but when the user navigates back from the web browser into my app, the app hangs, then crashes.

我已经严格遵守

I've carefully followed the great blog post on the Windows Team Blog, but can also reproduce the bug using the provided code there (just add a WebBrowserTask to one of the button click events on the DetailsPage; or in fact a send SMS task).

任何人都可以确认此错误,或者指出需要做些特殊的事情来克服它吗?

Can anyone else confirm this bug, or perhaps point out something special that needs to be done to overcome it?

推荐答案

糟糕!是的,事实证明,在大多数情况下,您只需要恢复调试器即可使应用程序恢复正常工作.

Whoops! Yes it turns out in most cases you just need to resume the debugger to have the app come back to life.

但是在我自己的情况下,我自己的代码中也存在一个错误.和往常一样.

However in my case there is also a bug in my own code. As usual.

这篇关于从任务导航回时,Windows Phone应用程序崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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