On Mon, Feb 15, 2010 at 11:33 AM, PEYMAN ASKARI <[email protected]> wrote:

> This is a general question regarding pixmaps and garbage collection
>
> I had a piece of code which ran roughly as follows
>
> def on_da_configure_event(...):
>     #pixmap stored in a list to become immutable
>     global da_pixmap
>
>     da_pixmap[0]=gtk.Pixmap(...)
>
> essentially, everytime the da was reconfigured, the pixmap would be
> overwritten with a new pixmap. However, the old pixmap was never removed.
> Essentially the program would use more and more memory, until it crashed. Is
> this normal behavior?
>
> Thanks
>
>
> Peyman Askari
>
>
> _______________________________________________
> pygtk mailing list   [email protected]
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>



You may want to take a look at this faq entry and see if this solves your
problem: http://faq.pygtk.org/index.py?req=show&file=faq08.004.htp

-- 
Simon Vermeersch
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to