It is suspicious. I don't think it's a memory leak, it's more my code
handling the gtk.mainloop(), a bad work on instances, or something like
that. And I can't find solutions on the web or the archive.

The fact that my windows (4 of them) are displayed one by one (like a
stack) is making the problem somehow unique. I only have the interface,
some code to hide() one and show() the next, nothing else.

My windows are not displayed together, only one by one. I can keep one
on screen forever no problem, I just can't hide and show them for too
long.

For example I've got window A and window B. A is shown, B is hidden. I
hide A, show B. I hide B, show A, then A.show() is called twice. If I
carry on B.show() gets called thee times, A.show() four time, etc... You
get the idea.

I don't think I was very clear. Can I send some simple code to the list
so you see what I mean?

-- Pierre


On Thu, 2004-01-15 at 15:01, Christian Robottom Reis wrote:
> On Thu, Jan 15, 2004 at 03:53:11PM +0000, Pierre N wrote:
> > proceed. I tried to create a class and a .py file for each window, I
> > tried to centralise everything in one file and one class using
> > window.hide() and window.show() but it gets slower and slower the more I
> > use it. Should I use just one window and show() hide() all the widgets
> 
> This sounds suspicious. Either you've found a memory leak somewhere
> (database connections are something to watch), or you're recreating your
> windows (perhaps by using glade.xml repeatedly over the same glade
> files) every time you're displaying them (which could be considered as a
> type of leak as well).
> 
> I have PyGTK apps with multiple windows that can run for days without
> slowing down, which is why I say this isn't a toolkit or binding
> limitation.
> 
> As to whether to structure your app in multiple windows or a single one,
> that choice should really be guided by usability and the expected
> ergonomics (rather than performance workarounds ;) of your application.
> 
> Take care,
> --
> Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331

_______________________________________________
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