[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyKDE] Re: Memory leak & segfault with deleteLater
From:       "Giovanni Bajo" <rasky () develer ! com>
Date:       2005-08-16 16:50:46
Message-ID: 049901c5a282$a5d9cdd0$bf03030a () trilan
[Download RAW message or body]

Phil Thompson <phil@riverbankcomputing.co.uk> wrote:

> 2. w1 and it's C++ instance won't be garbage collected (and the widget
might
> be visible) until the collector is run. Might this be too long to wait?
(It
> would be possible to explicitly run the collector at strategic points in
the
> sip module.)

I think this is calling for trouble, and I am not sure we should call the
collector behind an user's back, I'd rather that to be in full control of
the application. It's a rather big change in behaviour, too: it's pretty
common for a custom child widget to hold a Python reference to the custom
parent widget (though it could easily be acquired through parent()).

This said, I don't think there is a satisfactory solution for the problem.
Maybe we should just leave it as is, at least for now. I also don't think
that specific hacks with knowledge of the QObject semantics would be
acceptable.

Thanks anyway!
-- 
Giovanni Bajo

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic