Print Page | Close Window

crash in release - scalar deleting destructor

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=12780
Printed Date: 16 May 2024 at 10:09pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: crash in release - scalar deleting destructor
Posted By: Pariksh*t
Subject: crash in release - scalar deleting destructor
Date 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



Replies:
Posted By: Oleg
Date Posted: 24 November 2008 at 4:58am
Hi,
Send to mailto:support@codejock.com - support@codejock.com MainFrm.cpp + h.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Pariksh*t
Date Posted: 17 December 2008 at 12:41am
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?


Posted By: Oleg
Date Posted: 18 December 2008 at 6:54am

Never save controls. Create them dynamically.



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Pariksh*t
Date Posted: 18 December 2008 at 9:58pm
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?



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net