我最近上傳遊戲到Windows Phone市場和幾天後我得到以下異常system.invalidoperationexception
崩潰報告和以下堆棧跟蹤報告的Windows Phone應用程序崩潰
0 Microsoft.Phone.ni.dll System.Windows.Navigation.NavigationService.GoForwardBackCore 0x000bcb8e
1 Microsoft.Phone.ni.dll System.Windows.Navigation.NavigationService.GoBack 0x000000ec
2 BlocksPhone.ni.DLL BlocksPhone.MainPage.btnExitClick 0x0000001e
3 System.Windows.ni.dll System.Windows.Controls.Primitives.ButtonBase.OnClick 0x00000030
4 System.Windows.ni.dll System.Windows.Controls.Button.OnClick 0x0000001e
5 System.Windows.ni.dll System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp 0x00000132
6 System.Windows.ni.dll System.Windows.Controls.Control.OnMouseLeftButtonUp 0x00000034
7 System.Windows.ni.dll MS.Internal.JoltHelper.FireEvent 0x00000334
據我所知,應用程序可能會由於退出按鈕單擊事件而崩潰,但我不確定導致崩潰的原因。報告稱,該崩潰發生在Apollo
版本。 這是我的退出按鈕單擊事件..
private void btnExitClick(object sender, RoutedEventArgs e)
{
this.NavigationService.GoBack();
}
我以爲退出應用程序是違反準則。 –