Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
We should keep an implicit reference to UIAlertViews until they are dismissed, without requring the user to keep a reference themselves. This is a major source of bugs for our users.
To fix this, what we need to do is:
* Flag the Show method as internal
* Flag the Delegate [Wrap] method as internal.
* Expose a new Delegate method that will always inject a proxy in between.
* The proxy delegates every method call to the original class.
The only difference is that when the public Show is created, we keep track of the instance in a static table. And when Dismissed is invoked on the proxy, we remove it.
Hm, do you have an example of the code we *want* to work but isn't working?
I put this inside the default monodevelop template:
public override bool FinishedLaunching (UIApplication app, NSDictionary options)
UIAlertView alert = new UIAlertView ("Alert!", "something bad happened!", null, "cancel", "uh huh");
and it seems to work.. just because the GC hasn't run?
My bad, this is now taken care of from the last MonoTouch Novell release. It is no longer an issue. Just my bad memory.
Geoff introduced a system to keep around references until a delegate method was invoked, the KeepRefUntil parameter in BaseType