![]() |
Memory Leak on CommandBars destruction |
Post Reply
|
| Author | ||||
Paolo
Newbie
Joined: 02 March 2006 Status: Offline Points: 9 |
Post Options
Thanks(0)
Quote Reply
Topic: Memory Leak on CommandBars destructionPosted: 13 June 2008 at 2:50am |
|||
|
ToolkitPro MFC version 12.0.0:
I built a simple MFC application, just run it and immediatly close. In my VS2008 IDE the output shows some memory leaks that are related to command bars structure. Here's the relevant output:
The line I'm actually focused on is follows:
I included <XTToolkitPro.h> in stdafx.h, derived MainFrm class from CXTPMDIFrameWnd and in MainFrm.cpp file I modified
function by adding the code block I copied here:
I checked CXTPCommandBar destructor (xtpcommandbar.cpp lines 201 and following) and Command Bar titled "My Command Bar" is correctly deleted. But I can not find deletion of the CXTPPopupToolBar I created with CXTPPopupToolBar::CreatePopupToolBar method. I'm not sure if it's me not deleting correctly something or if something is missing in Codejock code. Can somebody help me? |
||||
![]() |
||||
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 June 2008 at 6:35am |
|||
|
Hi,
yes, after you link popupToolBar_p to controlPopup_p you have decreate reference counts:
controlPopup_p->SetCommandBar(popupToolBar_p);
popupToolBar_p->InternalRelease();
|
||||
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
||||
![]() |
||||
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 |