[PyKDE] Memory leak: Cycles with QObject's doesn't get collected

Nahuel Greco nahuel.greco at voiceovernet.com.ar
Wed Mar 30 17:03:55 BST 2005


I think I have found another memory leak. When you create cycles with QObjects
they aren't collected. This doesn't happen with pure python objects (as
expected), but in that case I have found an strange behaviour when you set
the gc.DEBUG_SAVEALL flag (that isn't PyQT related, but take that in
account if you add gc debug flags). See the attached script and their logs.



Saludos,
Nahuel Greco.





-------------- next part --------------
A non-text attachment was scrubbed...
Name: using_pure_python_class.log
Type: application/octet-stream
Size: 3910 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20050330/d990dbcf/using_pure_python_class.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: using_qobject_class.log
Type: application/octet-stream
Size: 3997 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20050330/d990dbcf/using_qobject_class.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_qt_cycles.py
Type: text/x-python
Size: 2071 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20050330/d990dbcf/test_qt_cycles.py


More information about the PyQt mailing list