WP7 应用程序在调试时仅在模拟器和设备上工作 [英] WP7 application working only on emulator and on device when debugging

查看:28
本文介绍了WP7 应用程序在调试时仅在模拟器和设备上工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 WP7 应用程序有问题,它在模拟器上运行良好,在设备上也运行良好,但仅限于调试时.当我在未调试时运行应用程序时,应用程序被终止.也不例外……没什么.我不知道是什么部分导致了这种情况.该应用程序正在调用 Web 服务、bing 地图服务并使用 GPS 信息.有任何想法吗?

I have a problem with my WP7 application, it's working fine on the emulator and it's also working fine on the device but only when debugging. When I run the application when it's not debugging the application is terminated. No exception...nothing. I can not tell what part is actually causing that. The application is calling web services, bing map services and using GPS information. Any ideas?

推荐答案

您在启动过程中是否在做任何昂贵或同步的事情?

Are you doing anything expensive or synchronous during your startup?

在操作系统将其杀死之前,您有一定的时间让您的应用启动.附带调试器后,您就可以不受时间限制.在模拟器上,您计算机的处理器速度可能使其启动速度比在设备上更快.

You have a certain amount of time for your app to start up before the OS kills it. with a debugger attached, you're exempted from the time limit. On the emulator, your computer's processor speed might make allow it to start up faster than it would on the device.

我会开始简化您的应用启动程序,看看这是否是其中的一部分.

I'd start simplifying your app startup and see if that's part of it.

这篇关于WP7 应用程序在调试时仅在模拟器和设备上工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆