[Qt-interest] scalar deleting destructor() ???
Eirik Ulvik
eiriku at simsurgery.com
Wed Mar 24 12:57:11 CET 2010
Den 24.03.2010 12:43, skrev Santhosh Y:
> Hi,
>
> Following is the call stack trace for the application which is crashing,
> subsequently.
>
> > my.exe!mod2::le::~le() Line 101 C++
> my.exe!mod2::le::`scalar deleting destructor'() + 0xf bytes C++
> my.exe!mod2::CentralWindow::~CentralWindow() Line 28 + 0x3c
> bytes C++
> my.exe!mod2::CentralWindow::`scalar deleting destructor'() + 0xf
> bytes C++
> my.exe!mod2::WorkspaceView::cleanup() Line 143 + 0x24 bytes C++
> my.exe!mod2::WorkspaceView::~WorkspaceView() Line 133 C++
> my.exe!mod2::WorkspaceView::`scalar deleting destructor'() + 0xf
> bytes C++
>
> my.exe!module1::WorkspaceTabBar::detachWorkspaceView(mod2::WorkspaceView
> * ws=0x0e4fa2b0) Line 238 + 0x33 bytes C++
> my.exe!module1::WorkspaceTabBar::tabTobeClosed() Line 517 + 0x26
> bytes C++
> my.exe!module1::WorkspaceTabBar::qt_metacall(QMetaObject::Call
> _c=InvokeMetaMethod, int _id=1, void * * _a=0x0012afd0) Line 74 C++
>
>
> I suspect, some thing is wrong when this message "scalar deleting
> destructor'()" is coming on the trace.
> I think almost all the time, when this message comes it is leading to a
> crash!!!
>
>
> Anybody know, why this message is coming ?? What is the issue here. I
> tried googling this issue...but not much help there!
>
> Thanks in advance.
>
> Regards,
> Santhosh
>
It is quite difficult to know what your problem is. What seems to be the
case is that you are deleting an object that has already been deleted.
If this is a QWidget based class there are a couple of options:
- First and most probably what is happening is that you are deleting
a QWidget that Qt itself already has deleted.
- Second, if you are sure that you have to delete the object use the
deleteLater function (if it is a QObject). This should let all events be
processed before deleting the object itself.
Regards,
Eirik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 551 bytes
Desc: OpenPGP digital signature
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100324/9f69d9ee/attachment.bin
More information about the Qt-interest-old
mailing list