Nov 8, 2001, 10:16 PM
Post #3 of 3
Thanks for your effort, Jim, but we know about the garbage collector. (I say 'we' because thodi is sitting no more than 10 meters away from me.
I'm having several ideas on what the problem could be, but they all need to be verified.
The snippet thodi posted was only an example to demonstrate the problem. Actually, the problem occurs in a large Tk project where some hundred windows are opened and closed all the time. If the application runs for a long time, the system runs out of memory. And the problem seems to be that either someone holds an extra reference to the Tk widget or the reference counter is not properly decremented or set at the time the widget is created. Thus, the garbage collector cannot clean up the waste.
So if someone has experienced similar problems, please post any suggestions on what the problem could be.