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

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu May 19 09:25:53 EDT 2011


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

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


--- Comment #16 from Jonathan Clement <clementj at exactmodus.com> 2011-05-19 13:25:52 UTC ---
You should read this blog post first: 
http://tirania.org/blog/archive/2011/May-16.htm

You should not expect support for a few months.

As for your problem, maybe there is something else retaining your
ViewController. One thing I did is:
 1- Isolate one ViewController in a new project.
 2- Put a Console.WriteLine in my ViewController's finalizer.
 3- Disable code until the finalizer is called

To test my code, I just push/pop the ViewController on a NavigationController.
After 2-3 times the finalizer should be called if nothing is retaining it. Note
that if you call ViewController.Dispose() the finalizer won't be called
(http://blog.dmbcllc.com/2009/07/09/dispose-finalize-and-suppressfinalize/)

It's a bit tedious, but it can help. 


(In reply to comment #15)
> Dear Geoff,
> 
> None of the work around are working with us and our app is now on the app store
> and is receiving some very bad reviews due to this bug 
> 
> My Client is a major bank who owns the app is giving us very hard time and is
> asking us to fix the problems related to memory 
> 
> Please give me a date I can promise my client that this issue will be fixed
> ASAP
> 
> Thanks for your support and understand of how urgent it has become

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