https://bugzilla.novell.com/show_bug.cgi?id=688019https://bugzilla.novell.com/show_bug.cgi?id=688019#c0
Summary: GC does not collect UIViewController in certain cases
(Case 2)
Classification: Mono
Product: MonoTouch
Version: unspecified
Platform: iPhone
OS/Version: Apple iOS 4.2
Status: NEW
Severity: Critical
Priority: P5 - None
Component: Runtime
AssignedTo: gnorton at novell.com
ReportedBy: azmy at ebseg.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0) Gecko/20100101
Firefox/4.0
GC does not collect UIViewController in certain cases (Case 2)
1) When UIViewController adds a UIButton to a Navigation Bar View with Event
inside the UIViewController
2) this happens even if you try to remove the Event Handler using -= method on
the event handler
Reproducible: Always
Steps to Reproduce:
1. Create aUIViewController
2. Push a UIViewController into thos Navigation Bar
3. Have the UIViewController add a UIButton in the View of the
UIViewController
4. Add Event to the UIButton inside UIViewController
4. Set the UIViewController to null
5. the UIViewController destruct-er is never called
6. This happens even if you remove the Event Handler using -= approach
is called normally and GC Collection is fine
Actual Results:
Memory for the UIViewController is never released causing memory leaks and
frequent application kill by iOS
Expected Results:
GC Collection should occur when Event Handler is removed (and even better GC
should occur even if Event Handler is not manually removed)
Monotouch 4.0
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.