[pygtk] memory leak !?
Adrian Immler
pygtk at dedicated.12mm.net
Wed Jun 14 04:50:47 WST 2006
NZ> Adrian,
NZ>
NZ> I have had a similar problem in the past. I did some research into
NZ> it and found out you need to garbage collect manually after you no
NZ> longer have references to the image. I don't remember why I did this,
NZ> but I have something like this in my code:
NZ>
NZ> import gc
NZ> gc.enable()
NZ> ...
NZ> set_image(someimage):
NZ> # set the image
NZ> gc.collect()
NZ>
NZ> I hope this helps you.
NZ>
NZ> Natan
indeed this works and solved the problem. but it think that the root of
the problem still remains and is some kind of bug probably in pygtk.
More information about the pygtk
mailing list