[Mono-bugs] [Bug 668723] Attaching FailedToReceiveAd event handler to MonoTouch.iAd.ADBannerView causes application crash.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Feb 1 15:17:10 EST 2011



Geoff Norton <gnorton at novell.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |gnorton at novell.com
         Resolution|                            |INVALID
           Severity|Critical                    |Normal

--- Comment #3 from Geoff Norton <gnorton at novell.com> 2011-02-01 20:17:10 UTC ---
You are putting the adview on the AdViewController, but you are allowing the
contorller to be collected:

                public override bool FinishedLaunching (UIApplication app,
NSDictionary options)
                        // If you have defined a view, add it here:
                        AdViewController adViewController = new
                        window.AddSubview (adViewController.View);

                        window.MakeKeyAndVisible ();

                        return true;

As soon as you return from finishedlaunching the gc is free to collect the
AdViewController as nothing contains a reference to it, and as such the iAd
view can also go away (on the managed proxy).  Keep a reference to your
controller and the crash goes away.

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

More information about the mono-bugs mailing list