[PyQt] sip. setdestroyonexit

Phil Thompson phil at riverbankcomputing.com
Mon Aug 15 22:35:43 BST 2016


On 15 Aug 2016, at 9:11 pm, Carl Wolff <carl at wolff-online.nl> wrote:
> 
> Hello,
> 
> I succesfully applied sip. setdestroyonexit on a fairly large pyqt4 application suffering from occasional crashes at exit time.
> 
> My question is twofold:
> - why is destroyonexit not set to False by default;

So as not to change the behaviour of existing applications.

> - Is it (theoretically) possible to live without using this sip call? E.g. by adhering to guidelines regarding pyqt wrapper/qt ownership and qt/python garbage collection? When I read the API documentation of sip.setdestroyonexit carefully, I get the impression that it is impossible to live without this sip call.

As far as I can remember I've never used it in my own code.

Phil


More information about the PyQt mailing list