Finaly catch the memory leak I was fighting with !!!! Was a tricky one, but the solution was simple: I had to include the contents of the notebook tab in a frame. Otherwise the memory is not released when you remove the tab.
Any idea why is it like that??? Could it be kind of pygtk bug? I attach the corrected example for the records. Davic 2007/10/4, David Tremouilles <[EMAIL PROTECTED]>: > hello, > > I'm struggling with a memory leakage of my app for quite some > time. Could somebody help? > > I join a demo program in attachment. > The problem is that the memory consumption keeps on increasing while > opening and closing tabs. > In the demo attached a click on "button" will open a new tab. If, for > example, you open ten new tabs, then close ten tabs, and open again > ten tab, and repeat this many times you will see the memory > consumption increases after each 10 close-10 open cycles. > Could somebody help me on finding the origin of this leak? > > Note: I already post on pygtk list and did not get any useful help at > this point in time. > I use > Python 2.5.1 > GTK: (2, 12, 0) > pyGTK: (2, 12, 0) > I already observed the same issue with older versions... > It's been a long time I try to solve it... > > Thanks in advance, > >
mem_leak.py
Description: Binary data
fenetre.glade
Description: Binary data
element.glade
Description: Binary data
mem_leak_solved.py
Description: Binary data
-- http://mail.python.org/mailman/listinfo/python-list