[Mono-bugs] [Bug 672503] Memory leak when repeatedly creating (and disposing of) bitmaps
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Mar 4 10:48:55 EST 2011
https://bugzilla.novell.com/show_bug.cgi?id=672503
https://bugzilla.novell.com/show_bug.cgi?id=672503#c2
Mike Kestner <mkestner at novell.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Mike Kestner <mkestner at novell.com> 2011-03-04 15:48:52 UTC ---
We did make some additional improvements recently to our repo regarding GC, but
with those and the addition to your sample of the following in
GraphView.Dispose():
mCanvas.Dispose ();
mCanvas = null;
The OutOfMemory exception does not occur testing out to over 100 flips.
Expensive java resources like bitmaps will need to be Disposed since they
create almost no memory pressure on the mono side while exerting big pressure
on dalvik. You likely you want to actively dispose them anyway to avoid memory
bloat. The lack of the Canvas dispose call was resulting in the bitmap
remaining alive, since your sample refs it from the canvas.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list