[Mono-bugs] [Bug 583271] App crash when creating basic table based navigation app without IB

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Feb 25 10:48:41 EST 2010


http://bugzilla.novell.com/show_bug.cgi?id=583271

http://bugzilla.novell.com/show_bug.cgi?id=583271#c1


Geoff Norton <gnorton at novell.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Geoff Norton <gnorton at novell.com> 2010-02-25 15:48:41 UTC ---
Your code is invalid:
        public override bool FinishedLaunching (UIApplication app, NSDictionary
options)
        {
            window = new UIWindow(UIScreen.MainScreen.Bounds);
            UINavigationController rootController = new
UINavigationController(new TableController());
            window.AddSubview(rootController.View);
            window.MakeKeyAndVisible();
            return true;
        }

As soon as control leaves this function your rootController is free to be
garbage collected, and its the only thing that keeps a ref on your
TableController.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list