Print Page | Close Window

MDI child / XTP crash

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=4474
Printed Date: 10 November 2025 at 5:35pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: MDI child / XTP crash
Posted By: ABuenger
Subject: MDI child / XTP crash
Date Posted: 23 June 2006 at 11:01am
I have a MDI child frame which is derived from CXTPFrameWndBase<CMDIChildWnd>.
 
As a member of my frame class I have a CXTPControlComboBox.
 
In OnCreate I add a toolbar to my commandbars (pCommandBars->Add) and then load the toolbar from a resource (pToolBar->LoadToolBar).
 
On the toolbar I have a placeholder for the combobox and in OnCreateControl I call lpCreateControl->pControl = &m_combobox.
 
This worked fine with 10.1 but now with 10.2 the application crashes somewhere in m_pCommandBars->InternalRelease.
 
If I create the combobox with new CXTPControlComboBox everything works fine. There is no memory leak when I close the application so I assume that you delete all objects the commandbars points to now.
 
Also the scrollbar bug I've reported 2 month ago isn't fixed in 10.2:
 
http://forum.codejock.com/forum_posts.asp?TID=4068 - http://forum.codejock.com/forum_posts.asp?TID=4068
 


-------------
Codejock support



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