更新到WP8后访问冲突 [英] Access Violation since updated to WP8

查看:46
本文介绍了更新到WP8后访问冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近更新了我的应用程序到Windows Phone 8,因为这个应用程序中有很多很多崩溃和错误,我以前没有使用WP7.1,我成功地修复了所有这些,除了一个。

I've updated recently my application to Windows Phone 8, and since this there were many and many crashs and bugs in the application that I hadn't before with WP7.1, I successfuly fixed all of them, except one.

实际上,有时,当我使用WebBrowser时,应用程序会立即崩溃。当我查看错误时,它总是这样:

Indeed, sometimes, when I use the WebBrowser, the application crashes instantly. And when I look at the error, it's always this :

'TaskHost.exe'已退出,代码为-1073741819(0xc0000005)'访问违规'。

'TaskHost.exe' has exited with code -1073741819 (0xc0000005) 'Access violation'.

我不知道WebBrowser是如何引发这个错误的,所以我无法修复它,这很烦人。是否有人有解决这个问题的方法?有关信息,我在同一页面上使用3个不同的Web浏览器但在不同的PivotItem中,
直接链接到IsolatedStorageSetting类并间接链接到数据库。

I don't know how the WebBrowser can provoke this error, so I can't fix it and it's quite annoying. Is there some one who have any solution to this problem ? For information, I use 3 differents web browsers on the same page but in different PivotItem, which are linked directly to an IsolatedStorageSetting class and indirectly to a data base.

推荐答案

可能是您的应用使用了WP7中的库DLL。您可以尝试删除引用并重新添加它们以确保它们都是WP8版本。

Could be that your app uses library DLLs from WP7. You can try deleting your References and re-adding them to make sure they are all WP8 versions.

确保清理构建,并且XAP中没有遗留的文件遗留下来来自WP7。

Make sure you Clean build, and there are no stray files in the XAP that are left over from WP7.

我倾向于创建一个新的WP8应用程序,然后将源文件导入到新项目中。这可以确保您从一个久经考验的WP8应用程序状态开始。

I would be inclined to create a new WP8 app, and then import your source files to the new project. This ensures that you are starting at a proven good WP8 app state.

希望这会有所帮助,

Mark

Hope this helps,
Mark


这篇关于更新到WP8后访问冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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