[PyQt] SIP Question (Not PyQT/PyKDE related)
phil at riverbankcomputing.co.uk
Mon Jul 9 14:08:14 BST 2007
On Thursday 05 July 2007 4:48 pm, Doyon, Jean-Francois wrote:
> Thanks a bunch, just go the snapshot, and things now work as expected.
> One thing though re: reference passing:
> I wanted Python to get the reference so that everything gest cleaned up
> properly, so I added a /TransferBack/ (Actually /Out,TransferBack/) to
> the method signature, only now glibc complains that free() is called on
> an invalid pointer when the interpreter shuts down! Is that right?
Probably not. Where does ownership of the (C++) object really lie? You can
only use /TransferBack/ if ownership if the C++ really is giving up
> I may end up using the C++ toolkit I'm wrapping a long-running, even
> threaded process (a server), so I want to make sure I get this right.
More information about the PyQt