[pygtk] Need help to find origin of a mem leakage
David Tremouilles
david.trem at gmail.com
Mon Oct 8 03:49:37 WST 2007
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 <david.trem at gmail.com>:
> 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 <david.trem at gmail.com>:
> > Python 2.5.1
> > GTK: (2, 12, 0)
> > pyGTK: (2, 12, 0)
> >
> > Sorry I forgot to mention the versions.
> >
> > David
> >
> >
> > 2007/9/27, P=E1draig Brady <P at draigbrady.com>:
> > > 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
> > >
> > >
> >
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: demo_v5_solved.py
Type: application/octet-stream
Size: 3020 bytes
Desc: not available
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20071007/ae3c5b39/d=
emo_v5_solved.obj
More information about the pygtk
mailing list