简体   繁体   English

WP8卡在永久加载屏幕上

[英]WP8 stuck on eternal loading screen

I am developing a C# game for Windows Phone 8 using Lumia 920 as a test device. 我正在使用Lumia 920作为测试设备为Windows Phone 8开发C#游戏。 I am using VS2012 and MonoGame 3.1.3 alpha. 我正在使用VS2012和MonoGame 3.1.3 alpha。 After I deploy my app to the device for the first time everything goes well. 第一次将我的应用程序部署到设备上后,一切都进行顺利。 But on subsequent relaunches, I get a black screen with 'loading' written in the center and 5 dots above it that keep moving sideways (default windows loading indicator). 但是在随后的重新启动中,我得到了一个黑屏,中间写着“加载”,上方有5个点,它们一直向侧面移动(默认窗口加载指示器)。 Its just like the example image below, but with 'loading' instead of 'resuming' . 就像下面的示例图像一样,但是使用'loading'而不是'resuming' 在此处输入图片说明

But off course it doesn't seem like its loading anything and just stays there forever. 但是,偏离路线似乎并没有加载任何东西,而是永远保留在那里。 The only way to launch my app again is to uninstall it and deploy again. 再次启动我的应用程序的唯一方法是将其卸载并重新部署。 The output windows ends with these 2 lines while stuck at loading: 输出窗口在卡住加载时以这两行结尾:

The thread 0xbc4 has exited with code 259 (0x103).
The thread 0xd40 has exited with code 0 (0x0).

This problem used to happen much less frequently last week but today it started happening every time after the first launch. 上周,该问题的发生频率要低得多,但是今天,它在每次首次发布后就开始发生。 I did launch in debug mode to check if there are any errors being raised but no. 我确实以调试模式启动,以检查是否出现任何错误,但是没有。

I thought about what I changed during startup lately and it is adding Parse's initialization code to my App() in App.xaml. 我想到了最近在启动过程中所做的更改,它是将Parse的初始化代码添加到App.xaml中的App()中。

ParseObject.RegisterSubclass<ParseUserData>();
ParseClient.Initialize("---", "---");
ParseFacebookUtils.Initialize("---");

I moved these from the start of App() into the end of it and the problem went away. 我将它们从App()的开头移到了结尾,问题消失了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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