I'm trying to debug my application and from the point I fire it up on the iPad, it will get killed by timeout before it ever reaches FinishedLaunching() (I have abreakpoint there)! Here' swhat I see in the output panel. All this takes almost 20s. If I run the app in RELEASE build it randomly gets stuck. I hit a button and the delegate gets caled half a minute later. What is going on? In the Simulator it is all okay.
Loaded assembly:开发者_开发知识库 /private/var/mobile/Applications/C3E70D7B-8C10-49CD-98A7-FCE857899BAA/MyBrowser.app/Mono.Security.dll [External]
Loaded assembly: /private/var/mobile/Applications/C3E70D7B-8C10-49CD-98A7-FCE857899BAA/MyBrowser.app/System.dll [External]
Loaded assembly: /private/var/mobile/Applications/C3E70D7B-8C10-49CD-98A7-FCE857899BAA/MyBrowser.app/monotouch.dll [External]
Loaded assembly: /private/var/mobile/Applications/C3E70D7B-8C10-49CD-98A7-FCE857899BAA/MyBrowser.app/System.Xml.dll [External]
Loaded assembly: /private/var/mobile/Applications/C3E70D7B-8C10-49CD-98A7-FCE857899BAA/MyBrowser.app/System.Data.dll [External]
Loaded assembly: /private/var/mobile/Applications/C3E70D7B-8C10-49CD-98A7-FCE857899BAA/MyBrowser.app/System.Transactions.dll [External]
Loaded assembly: /private/var/mobile/Applications/C3E70D7B-8C10-49CD-98A7-FCE857899BAA/MyBrowser.app/Mono.Data.Sqlite.dll [External]
Loaded assembly: /private/var/mobile/Applications/C3E70D7B-8C10-49CD-98A7-FCE857899BAA/MyBrowser.app/System.Web.Services.dll [External]
Loaded assembly: /private/var/mobile/Applications/C3E70D7B-8C10-49CD-98A7-FCE857899BAA/MyBrowser.app/System.Core.dll [External]
Loaded assembly: /private/var/mobile/Applications/C3E70D7B-8C10-49CD-98A7-FCE857899BAA/MyBrowser.app/iMy.dll
Loaded assembly: /private/var/mobile/Applications/C3E70D7B-8C10-49CD-98A7-FCE857899BAA/MyBrowser.app/MyBrowser.exe
Thread started:
Resolved pending breakpoint at 'AppDelegateIPad.cs:110' to Boolean MyBrowser.AppDelegateIPad:FinishedLaunching ():0.
Avoid setting breakpoints in FinishedLaunching. When compiling in Debug mode, the code is always slower. On the simulator it works because: a. There is no wifi connection between "device" and MonoDevelop b. The "device" is your computer, so everything runs faster than it would on the actual device.
If it randomly gets stuck in Release mode, I think you have a lot going on in FinishedLaunching that you shouldn't.
精彩评论