[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] Segfault in PyQt 4.6.1
From: Giovanni Bajo <rasky () develer ! com>
Date: 2009-10-29 20:39:34
Message-ID: e0a0a48c7bed497e5fd6571ae927d44f () develer ! com
[Download RAW message or body]
On Thu, 29 Oct 2009 18:49:27 +0000, Phil Thompson
<phil@riverbankcomputing.com> wrote:
> On Thu, 29 Oct 2009 11:47:44 -0600, Kovid Goyal <kovid@kovidgoyal.net>
> wrote:
>> I should add that the segfault is present in the current snapshot as
> well:
>>
>> python2.6 -c "from PyQt4.Qt import QApplication, PYQT_VERSION_STR;
>> QApplication([]); print PYQT_VERSION_STR; from PyQt4.QtWebKit import
>> QWebPage; QWebPage()"
>>
>> 4.7-snapshot-20091028
>> Segmentation fault
>
> The QApplication instance is being garbage collected before the QWebPage
is
> created.
>
> It worked in earlier versions because of a PyQt bug which meant that the
> QApplication dtor was never called - but it is now.
Thought it is debatable that QApplication's instances are not owned by C++
by default. Giving ownership to Python doesn't seem to give much of an
advantage (you probably are better off using sip.delete() anyway when you
really really want to destroy an application).
--
Giovanni Bajo
Develer S.r.l.
http://www.develer.com
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic