![]() |
crash in release - scalar deleting destructor |
Post Reply ![]() |
Author | |
Pariksh*t ![]() Groupie ![]() ![]() Joined: 26 June 2008 Location: India Status: Offline Points: 77 |
![]() ![]() ![]() ![]() ![]() Posted: 24 November 2008 at 3:28am |
hi
this is pariksh*t
my application is working fine in debug mode but in release mode when i close the application it gets crashed. i am facing this problem after incorporating Xtreme Toolkit in my application.
i am getting error like this :
> mfc71u.dll!CCmdTarget::ExternalQueryInterface(const void * iid=0x774e1a70, void * * ppvObj=0x0012ef60) Line 332 C++
ToolkitPro1201vc71U.dll!6782480e() ole32.dll!7750ddb3() mfc71u.dll!CCmdTarget::ExternalDisconnect() Line 396 C++ mfc71u.dll!CCmdTarget::~CCmdTarget() Line 51 C++ ToolkitPro1201vc71U.dll!6783d604() ToolkitPro1201vc71U.dll!67850980() ToolkitPro1201vc71U.dll!6783ea90() FotoAlbum.exe!CFontPreviewCombo::~CFontPreviewCombo() Line 70 + 0x31 C++ FotoAlbum.exe!CDlgText::~CDlgText() Line 54 + 0x6d C++ FotoAlbum.exe!CDlgBtmParent::~CDlgBtmParent() Line 55 + 0x7f C++ FotoAlbum.exe!CMainFrame::~CMainFrame() Line 512 + 0x6d C++ FotoAlbum.exe!CMainFrame::`scalar deleting destructor'() + 0xf C++ mfc71u.dll!CFrameWnd::PostNcDestroy() Line 214 C++ mfc71u.dll!CWnd::OnNcDestroy() Line 847 + 0xa C++ am noy getting why it is happening....
do reply
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Send to support@codejock.com MainFrm.cpp + h.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Pariksh*t ![]() Groupie ![]() ![]() Joined: 26 June 2008 Location: India Status: Offline Points: 77 |
![]() ![]() ![]() ![]() ![]() |
hi
i found the solution....and its horrible
i had a variable in one .h file
CXTPControlComboBox m_XTPComboBox; when i comment this line there is no crash after closing the application. please comment on this.....what is the reason for this?
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Never save controls. Create them dynamically. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Pariksh*t ![]() Groupie ![]() ![]() Joined: 26 June 2008 Location: India Status: Offline Points: 77 |
![]() ![]() ![]() ![]() ![]() |
hi
we have so many controls created on stack .....
will it create any problem?
is there any problem with your architecture when we create controls on stack?
i think there is problem in destructor of this control...
and if it the case why do you allow to create controls on stack?
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |