Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - crash in release -  scalar deleting destructor
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

crash in release - scalar deleting destructor

 Post Reply Post Reply
Author
Message
Pariksh*t View Drop Down
Groupie
Groupie
Avatar

Joined: 26 June 2008
Location: India
Status: Offline
Points: 77
Post Options Post Options   Thanks (0) Thanks(0)   Quote Pariksh*t Quote  Post ReplyReply Direct Link To This Post Topic: crash in release - scalar deleting destructor
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 24 November 2008 at 4:58am
Hi,
Send to support@codejock.com MainFrm.cpp + h.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Pariksh*t View Drop Down
Groupie
Groupie
Avatar

Joined: 26 June 2008
Location: India
Status: Offline
Points: 77
Post Options Post Options   Thanks (0) Thanks(0)   Quote Pariksh*t Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 18 December 2008 at 6:54am

Never save controls. Create them dynamically.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Pariksh*t View Drop Down
Groupie
Groupie
Avatar

Joined: 26 June 2008
Location: India
Status: Offline
Points: 77
Post Options Post Options   Thanks (0) Thanks(0)   Quote Pariksh*t Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.187 seconds.