[Mono-bugs] [Bug 617326] New: Memory Leak: using(CGImage cgimg = _bitmapContext.ToImage(){ }

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jun 25 02:34:43 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=617326

http://bugzilla.novell.com/show_bug.cgi?id=617326#c0


           Summary: Memory Leak:  using(CGImage cgimg =
                    _bitmapContext.ToImage(){ }
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: Runtime
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: johnnynine at yahoo.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: Yes


Created an attachment (id=371696)
 --> (http://bugzilla.novell.com/attachment.cgi?id=371696)
Demos memory leak

It's as simple as this... the following statement leaks:

using(CGImage cgimg = _bitmapContext.ToImage(){ }

My complete app uses this code a lot (with more statements withing the using
block of course) and after about 1 minute my app starts getting low memory
errors and crashes soon after.

Running Instruments you can see the statement above leak.

I have attached a simple test case project which shows the leak.

I marked this as a blocking critical error because my app is done and ready for
the app store but has been delayed for a few months since I could not find what
was causing the issue in my app. I can't release to the app store with this
memory leak.

Thanks

-- 
Configure bugmail: http://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