简体   繁体   中英

Randomly crashes in release configuration

While enabled Optimize code in project properties, application randomly crashes with exception

Unhandled exception at 0x663B6243 (mrt100_app.dll) in 0xC0000005: Access violation reading location 0x5502339B.

I think problem in await CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => NavigateTo(pageType, extendedNavigationParameter)); and maybe here if (Window.Current.Content is Frame) { var frame = Window.Current.Content as Frame; frame.Navigate(pageType, JsonConvert.SerializeObject(extendedNavigationParameter)); } if (Window.Current.Content is Frame) { var frame = Window.Current.Content as Frame; frame.Navigate(pageType, JsonConvert.SerializeObject(extendedNavigationParameter)); }

我没有给你一个明确的答案,但有消息说“未处理的异常”,你可以尝试通过在两个部分周围添加Try Catch块来定位异常并记录异常。

Do you use the .NET Native Toolchain? Maybe your issue is caused by reflection in the json serialization. With the toolchain activated, reflection is not working anymore. Please read the following blog post for general information:

https://msdn.microsoft.com/en-us/library/dn600640(v=vs.110).aspx

And this link talks about serialization:

https://msdn.microsoft.com/en-us/library/dn600638(v=vs.110).aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM