When open application (developed using Monotouch) in iPhone, Application is crash when it is launch
Date/Time: 2012-02-17 21:57:44.970 +1100
OS Version: iPhoneOS 4.3.5 (8L1)
Report Version: 104
Exception Type: 00000020
Exception Codes: 0x8badf00d
Highlighted Thread: 0
Application Specific Information: Tender failed to launch in time
Elapsed total CPU time (seconds): 2.120 (user 1.420, system 0.700),
11% CPU Elapsed application CPU time (seconds): 1.200, 6% CPU
This is crash report
I just create object for view and added to window
My Startup code is
public override bool FinishedLaunching (UIApplication app, NSDictionary options)
{
window.MakeKeyAndVisible ();
iTenderLoginView loginView;
loginView = new iTenderLoginView (window);
window.AddSubview (loginView.View);
return true;
}
Thanks
Basically doing a local variable for a view, like this:
will cause a problem since
loginViewwon’t be referenced after theAddSubviewcall and the GC will be free to collect the instance. Promote theloginViewlocal variable into a field of yourAppDelegateand this should fix your crash.See my answer for https://stackoverflow.com/a/9254218/220643