Windows Phone app crashes when navigating back from a task

放肆的年华 提交于 2019-12-11 11:11:41

问题


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

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?


回答1:


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.



来源:https://stackoverflow.com/questions/3260968/windows-phone-app-crashes-when-navigating-back-from-a-task

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!