![]() |
help me to solve exception error. |
Post Reply ![]() |
Author | |
vpas ![]() Newbie ![]() Joined: 19 January 2005 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() Posted: 19 January 2005 at 9:41pm |
hi , everyone. nice day. when press the button of pane that i make to control toolbar, toolbar hide or show nicely. But...when the application close, occur exception error in dbgheap.c How i make. 1. i make pane of dialog and make button to hide or show toolbar. CXTPToolBar* pToolBar2 <= CMainFrm.h declaration 2. add in CMainFrame::OnCreate pToolBar2 = (CXTPToolBar*)pCommandBars->Add(_T("Standard2"), xtpBarTop); // .... // 3. int CMainFrame::ValidToolBar(void) return 0; 4. button of pane that i make. void CNavigationView::OnBnClickedOk() pMainFrame->ValidToolBar(); i have hardly been try to solve, but i dont know. if did you want source, i would send. leave email. Um... i used .Net C++ in Win 2000. why occur exception error? Um... help me. Edited by vpas |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
It can happens if you Save State in OnDestroy instead of OnClose. Show me how you save it. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
vpas ![]() Newbie ![]() Joined: 19 January 2005 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
hello, thanks a lot. i didn't use OnDestroy and use OnClose. void CMainFrame::OnClose() // Save the current state for toolbars and menus. // Save the current state for docking panes. CMDIFrameWnd::OnClose(); } The main points may be summarized as follows. int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) so, before that, class CMainFrame : public CXTPMDIFrameWnd CMainFrame::CMainFrame() used as above. 1. when using commonly "CXTPToolBar* pToolBar2" in OnCreate() and application end , error is not occur. Edited by vpas |
|
![]() |
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 |