[Qt-interest] Segfault with static QProcess
Thiago Macieira
thiago at kde.org
Tue Sep 14 16:43:18 CEST 2010
On Tuesday 14. September 2010 11.19.01 Volker Poplawski wrote:
> AFAIK the order of destruction of static objectes is undefined in c++. I
> think that's the reason why i'm seeing this crash.
>
>
> Is this a qt bug (i'm using qt4.5.3) ?
No. The problem is what you identified: the order of deletion of static objects
is undefined.
The only thing that you can do is make it so the order doesn't matter: do not
use a static QProcess.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100914/90a1534a/attachment.bin
More information about the Qt-interest-old
mailing list