* I need to investigate into Mono.Cairo. It seems there are
some huge memory leaks. After a few dozen of GUI redrawing iterations
the memory usage goes to 500MB... sigh. This is even though I call all
the IDisposable methods manually, so I suppose it has something to do
with resources being lost in Graphics.Save / Restore.
--
Michał Dominik K.
michal...@gmail.com
www.mdk.org.pl
* I need to investigate into Mono.Cairo. It seems there are
some huge memory leaks. After a few dozen of GUI redrawing iterations
the memory usage goes to 500MB... sigh. This is even though I call all
the IDisposable methods manually, so I suppose it has something to do
with resources being lost in Graphics.Save / Restore.
Well, it's calling the unmanaged *_destroy functions, so It should work. Also, if I disable all the drawing code (and leave only the Create/Dispose functions) it behaves as expected -- memory goes up and at some point GC kicks in and it gets freed.
I think we need to audit Mono.Cairo, if memory gets released during a GC it means that the release is happening not by calling IDisposable's method but its being called by the finalizers (which will run on a separate thread).
On 8/27/05, miguel de icaza <miguel....@gmail.com > wrote:
I think we need to audit Mono.Cairo, if memory gets released during a GC it means that the release is happening not by calling IDisposable's method but its being called by the finalizers (which will run on a separate thread).
I can't believe it's a bug in Cairo. I'll try to reproduce this in the native code, and let you know about the results.