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

List:       pykde
Subject:    Re: [PyKDE] Memory leak: Cycles with QObject's doesn't get collected
From:       "Phil Thompson" <phil () riverbankcomputing ! co ! uk>
Date:       2005-04-05 8:04:23
Message-ID: 65160.82.68.80.137.1112688263.squirrel () river-bank ! demon ! co ! uk
[Download RAW message or body]

> On Sun, 3 Apr 2005 00:30:23 +0100
> Phil Thompson <phil@riverbankcomputing.co.uk> wrote:
>
>> That's because SIP has never supported the cyclic garbage collector.
>> That is
>> now fixed and your test script shows no leak.
>>
>> I've also added %GCTraverseCode and %GCClearCode to allow classes that
>> include
>> references to Python objects to play nicely. The only example in PyQt is
>> QCustomEvent.
>>
>
> So, only QCustomEvent is supported? I mean, if I use QDialog instead of
> QObject
> in the previous test, then it will leak?. I'm correct?

No. QCustomEvent requires additional support because it includes an
additional PyObject reference that SIP doesn't know about. All "normal"
wrapped classes should be Ok.

Phil

_______________________________________________
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