[Mono-bugs] [Bug 670294] AddSubview and Garbage collection

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Aug 12 13:45:38 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=670294

https://bugzilla.novell.com/show_bug.cgi?id=670294#c22


Miguel de Icaza <miguel at xamarin.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |miguel at xamarin.com
         AssignedTo|mono-bugs at lists.ximian.com  |miguel at xamarin.com

--- Comment #22 from Miguel de Icaza <miguel at xamarin.com> 2011-08-12 17:45:37 UTC ---
We have a fix coming up in the 4.1 Beta preview.

For now, once you remove your subviews, do this:

Before you call RemovefromSuperview, do this:

var parent = CurrView.Superview;
CurrView.RemoveFromSuperView ();
var workaround = CurrView.Superviews;
CurrView.Dispose ();
CurrView = null;

-- 
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