http://bugzilla.novell.com/show_bug.cgi?id=551742
User [email protected] added comment http://bugzilla.novell.com/show_bug.cgi?id=551742#c3 Geoff Norton <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #3 from Geoff Norton <[email protected]> 2009-11-02 12:18:42 MST --- Mike, There are a few different things at play here. First UIImagePickerView appears to be a singleton under the hood, and keeps some things around for you to reuse it in the future, please see: http://stackoverflow.com/questions/1189707/memory-leak-problems-with-uiimagepickercontroller-in-iphone Additionally, you're seeing further clicks coalesce some more memory because you keep adding new eventhandlers to the TouchUpInsideEvent: In FinishedLaunching you have: cameraButton.TouchUpInside += HandleCameraButtonTouchUpInside; But in HandleCameraButtonTouchUpInside you have: cameraButton.TouchUpInside += delegate {}; So every time (after the first) that you click the button, you're adding another event handler to the list, causing the anonymous delegate to be invoked many times. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
