Windows Phone 8 HRESULT异常:0x87B20C05 [英] Windows phone 8 Exception from HRESULT: 0x87B20C05
问题描述
我遇到异常如下:(可以在wp8上重现)
I come across exception as bellow:(can reproduce on wp8)
异常类型:来自HRESULT的异常:0x87B20C05
ExceptionInfo:System.Runtime .InteropServices.COMException(0x87B20C05):来自HRESULT的异常:0x87B20C05
在Microsoft.Phone.TaskModel.Interop.TaskNativeMethods.GetCurrentOrientation(UInt32 taskId,Orientations& currentOrientation)
在Microsoft.Phone.TaskModel.Interop.Task.GetCurrentOrientation()
在Microsoft.Phone.Controls.PhoneApplicationPage.UpdatePageOrientation()
在Microsoft.Phone.Controls.PhoneApplicationPage.InternalOnNavigatedTo(NavigationEventArgs e)
在Microsoft.Phone.Controls.PhoneApplicationPage.Microsoft.Phone.Controls.IPhoneApplicationPage.InternalOnNavigatedToX(NavigationEventArgs e)
at System.Windows.Navigation.NavigationService.RaiseNavigated(Object content,Uri uri,NavigationMode mode,Boolean isNavigationInitiator,IPhoneApplicationPage existingContentPage,IPhoneApplicationPage newContentPage)
at System.Windows.Navigation.NavigationService.CompleteNavigation(DependencyObject content,NavigationMode mode)
在System.Windows.Navigation.NavigationService。<> c__DisplayClass7。< NavigateCore_StartNavigation> b__4()
ExceptionType: Exception from HRESULT: 0x87B20C05
ExceptionInfo: System.Runtime.InteropServices.COMException (0x87B20C05): Exception from HRESULT: 0x87B20C05
at Microsoft.Phone.TaskModel.Interop.TaskNativeMethods.GetCurrentOrientation(UInt32 taskId, Orientations& currentOrientation)
at Microsoft.Phone.TaskModel.Interop.Task.GetCurrentOrientation()
at Microsoft.Phone.Controls.PhoneApplicationPage.UpdatePageOrientation()
at Microsoft.Phone.Controls.PhoneApplicationPage.InternalOnNavigatedTo(NavigationEventArgs e)
at Microsoft.Phone.Controls.PhoneApplicationPage.Microsoft.Phone.Controls.IPhoneApplicationPage.InternalOnNavigatedToX(NavigationEventArgs e)
at System.Windows.Navigation.NavigationService.RaiseNavigated(Object content, Uri uri, NavigationMode mode, Boolean isNavigationInitiator, IPhoneApplicationPage existingContentPage, IPhoneApplicationPage newContentPage)
at System.Windows.Navigation.NavigationService.CompleteNavigation(DependencyObject content, NavigationMode mode)
at System.Windows.Navigation.NavigationService.<>c__DisplayClass7.<NavigateCore_StartNavigation>b__4()
详细信息:
我放了一张图片控制到一个页面和两个按钮,使图像显示不同的图像,快速点击按钮一会儿然后它发生...
I put a Image cntrol to a page and two buttons to make the image show different images, click the button very fast for a little while then it happens...
推荐答案
如果您不断点击该按钮,可能需要在代码中加入检查以防止重入。例如,在Click事件中,检查您的应用是否已在刷新图像的过程中。如果忙碌,可能会忽略点击。
If you are continuously clicking the button you might want to put checks in your code to prevent reentrance. For example in your Click event check to see if your app is already in the process of refreshing an image. Perhaps ignore the click if it is busy.
希望这会有所帮助,
Mark
Hope this helps,
Mark
这篇关于Windows Phone 8 HRESULT异常:0x87B20C05的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!