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 bug?

I attach the corrected example for the records.

David

2007/9/27, David Tremouilles <[EMAIL PROTECTED]>:
> Here is an updated and cleaner version of the leaking code.
> I do not understand "who" is keeping a reference to the "contents" of
> each on tabs after removing it.
>
> David
>
> 2007/9/27, David Tremouilles <[EMAIL PROTECTED]>:
> > Python 2.5.1
> > GTK: (2, 12, 0)
> >  pyGTK: (2, 12, 0)
> >
> > Sorry I forgot to mention the versions.
> >
> > David
> >
> >
> > 2007/9/27, Pádraig Brady <[EMAIL PROTECTED]>:
> > > David Tremouilles wrote:
> > > > Sorry forgot the attachments
> > > >
> > > > Hello,
> > > >
> > > >  I'm struggling with a memory leakage of my pygtk app for quite some
> > > > time. Could somebody help me?
> > > >
> > > > Seems this is not a cycle reference (checked with gc.garbage) but I'm
> > > > definitely not an expert...
> > >
> > > What version of python are you using?
> > > http://evanjones.ca/python-memory-part3.html
> > >
> > >
> >
>
>

Attachment: demo_v5_solved.py
Description: Binary data

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to