使用“tapped event”导航时,Windows phone 8.1 Update 1 ACCESS VIOLATION [英] Windows phone 8.1 Update 1 ACCESS VIOLATION when navigating using 'tapped event'

查看:59
本文介绍了使用“tapped event”导航时,Windows phone 8.1 Update 1 ACCESS VIOLATION的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个基于WinRT的Windows Phone 8.1应用程序。以下是我面临的问题的解释  8.1更新1:

在主页面上,我有一个可以移动的图像(复合变换),并且还绑定了导航的轻触事件到另一页。当我们点击它时,应用程序会随机崩溃(有时它会,但有时不会)。


但是如果我使用按钮导航到同一页面,它可以正常工作。


以下是事件序列:


1)调用Tapped事件。


2)onNavigatedTo在新页面上是已完成


3)点击事件已完成


这是应用关闭时的时间。调试器无法捕获错误行。它只显示:


程序'[656] MyProgram.exe'已退出,代码为-1073741822(0xc0000002)。


OR


退出代码 (0xc0000005)访问冲突


它曾经在8.1上完美运行。 8.1更新1中是否有一些错误?


任何人都可以帮忙吗?


注意:我的计算机上的SDK仍然是8.1而我的设备是8.1更新1.仍然,由于应用程序崩溃,更新1中必定存在一些导致此问题的更改/错误。我将更新到SDK更新1以查看调试器是否捕获错误行<​​/ p>












解决方案

找到解决方案

只需使用Dispatcher调用Frame.Navigate


I have an app for windows phone 8.1 based on WinRT. Here's explanation of a problem I'm facing after 8.1 update 1:
On the main page I have an image that can be moved around (composite transform) and is also bound to tapped event which navigates to a different page. The app is crashing randomly when we tap it (sometimes it does, sometimes doesn't).

However if I navigate to same page using button, it works fine.

Here's the sequence of events:

1) Tapped event is called.

2) onNavigatedTo on the new page is completed

3) Tapped event is completed

This is the time when app just closes. Debugger cannot catch what the error line. It just shows:

The program '[656] MyProgram.exe' has exited with code -1073741822 (0xc0000002).

OR

exited with code (0xc0000005) access violation

It used to work perfectly on 8.1. Is there some bug in 8.1 update 1?

Can anyone help?

NOTE: The SDK on my computer is still 8.1 while my device is 8.1 update 1. Still, since the app is crashing, there must be some change/bug in update 1 that's causing this issue. I will update to SDK update 1 to see if debugger catches the error line

解决方案

Found the fix
Just use Dispatcher to call Frame.Navigate


这篇关于使用“tapped event”导航时,Windows phone 8.1 Update 1 ACCESS VIOLATION的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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