[Qt-interest] crash in destructor of mainwindow?
Thiago Macieira
thiago at kde.org
Mon Jul 12 11:40:25 CEST 2010
Em Segunda-feira 12 Julho 2010, às 11:26:35, Matthias Pospiech escreveu:
> I get this crash, which I do not understand:
>
> Stack Trace:
>
> 0 QObjectPrivate::deleteChildren qobject.cpp 1978 0x6a20f02b
> 1 ~QWidget qwidget.cpp 1469 0x006ac6f3
> 2 ~QDialog qdialog.cpp 328 0x00aeaeb4
> 3 ~DialogCameraSMX DialogCameraSMX.cpp 24 0x00401c9c
> 4 QObjectPrivate::deleteChildren qobject.cpp 1978 0x6a20f038
> 5 ~QWidget qwidget.cpp 1469 0x006ac6f3
> 6 ~QMainWindow qmainwindow.cpp 341 0x00a4149c
> 7 ~MainWindow mainwindow.cpp 22 0x0040175f
> 8 main main.cpp 9 0x00401419
>
>
> crash in last line of:
>
> void QObjectPrivate::deleteChildren()
> {
> const bool reallyWasDeleted = wasDeleted;
> wasDeleted = true;
> // delete children objects
> // don't use qDeleteAll as the destructor of the child might
> // delete siblings
> for (int i = 0; i < children.count(); ++i) {
> currentChildBeingDeleted = children.at(i);
> children[i] = 0;
> delete currentChildBeingDeleted;
>
>
> Why does this happen?
Can you paste a valgrind log of this crash?
--
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/20100712/88c7c686/attachment.bin
More information about the Qt-interest-old
mailing list