我最近向 Windows Phone Marketplace 上传了一个游戏,几天后我收到了一个崩溃报告,其中包含以下异常system.invalidoperationexception
和以下堆栈跟踪报告
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();
}