Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WP7 application working only on emulator and on device when debugging

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?

like image 763
John Avatar asked Jan 04 '11 14:01

John


2 Answers

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.

like image 56
John Gardner Avatar answered Oct 18 '22 06:10

John Gardner


Try writing some logging to a file in isolated storage as startup steps are executed to see how far your app is getting before it crashes. You can compare this to the log output when you run in debug mode.

like image 32
Mick N Avatar answered Oct 18 '22 05:10

Mick N