Garbage collection with QT

Marco Bartel mab at iee.lu
Wed Jun 8 01:35:44 EDT 2005


Hello,
I got a question regarding garbage collection in python when using PyQT.
How can i safely get rid of an Object instance and delete it 
permanently. For example when having a QTable with a bunch of records 
inside and closing the window hosting it, the memory space will not 
being freed up and when opening it again, the memory usage will grow.
This ends up, when opening and closing the window serval times, in 
having all swapspace occupied and OS crashing.

Is there a way, to find out all references to the QMainWindow or its 
hosted QTable, for having a mechanism to destroy them?

THX
Marco



More information about the Python-list mailing list