[Mono-dev] Mono.Cairo Memory Leak

Manuel Alejandro Cerón Estrada ceronman at gmail.com
Wed Oct 5 22:50:08 EDT 2005


I'm writing an interactive canvas for the MonoUML Case Tool. I'm using
Cairo with Gtk# and I have experimented an ascending memory
consumption when drawings are continuously performed, for example
inside a MotionNotifyEvent Handler. This memory is never released and
eventually SWAP memory is needed making all too slow.

I attach a simple example that illustrate this problem. Cairo draws a
rectangle inside a Gtk.DrawingArea every time that the mouse is moved
over the DrawingArea. Compile it, run it, move the mouse, and see how
memory consumption starts to getting higher and higher over time.

Is anything wrong with my code? or is a bug?

Thanks in advance,


· Manuel Alejandro Cerón Estrada
· ceronman at gmail.com
· http://ceronman.blogspot.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cairo.cs
Type: text/x-csharp
Size: 2971 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20051005/57212a62/attachment.bin 

More information about the Mono-devel-list mailing list