Print Page | Close Window

Memory leaks in 11.1

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=6899
Printed Date: 27 September 2024 at 11:20pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Memory leaks in 11.1
Posted By: ABuenger
Subject: Memory leaks in 11.1
Date Posted: 17 April 2007 at 8:58am
After re-compiling my application with 11.1 (10.4.2 before) I get the same memory leaks I've seen in the VistaTaskDialog sample:

Detected memory leaks!
Dumping objects ->
afxtempl.h(370) : {137554} normal block at 0x02628028, 60 bytes long.
 Data: <      e         > 00 00 00 00 CC 0F 65 02 01 00 00 00 00 00 00 00
strcore.cpp(118) : {137553} normal block at 0x02671028, 38 bytes long.
 Data: <            C O > 01 00 00 00 0C 00 00 00 0C 00 00 00 43 00 4F 00
strcore.cpp(118) : {137551} normal block at 0x02650FC0, 36 bytes long.
 Data: <            S H > 01 00 00 00 0B 00 00 00 0B 00 00 00 53 00 48 00
Object dump complete.


XP SP2, VC6 SP6. To reproduce it just run the VistaTaskDialog sample and close it without any further action.


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



Replies:
Posted By: Oleg
Date Posted: 17 April 2007 at 9:35am
Hello,
 
yes, think we will publish some update for 11.1 - problem appears then you declare skinframework but not use it (didn't call LoadSkin)
 
add now line in consrtuctor and it will fix it:
 CXTPSkinManagerApiHook* pApiHook = CXTPSkinManagerApiHook::GetInstance();
 pApiHook;
 
 
Thank you.


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


Posted By: ABuenger
Date Posted: 17 April 2007 at 6:20pm
I get more memory leaks if I don't call LoadSkin and open a modal dialog and then close the app. It does only happen with modal dialogs.

Quote
...\Codejock Software\MFC\Xtreme ToolkitPro v11.1.0\Source\Ribbon\XTPRibbonTheme.cpp(378) : {2304} normal block at 0x026160C8, 536 bytes long.
 Data: <  U $ O   O     > CC 84 55 01 24 80 4F 01 20 80 4F 01 D4 D0 C8 00
...\Codejock Software\MFC\Xtreme ToolkitPro v11.1.0\Source\Ribbon\XTPRibbonTheme.cpp(375) : {2300} normal block at 0x02615E28, 48 bytes long.
 Data: <x U             > 78 84 55 01 00 00 00 00 01 00 00 00 00 00 00 00
...\Codejock Software\MFC\Xtreme ToolkitPro v11.1.0\Source\Ribbon\XTPRibbonTheme.cpp(374) : {2266} client block at 0x026159E0, subtype 0, 308 bytes long.
a CCmdTarget object at $026159E0, 308 bytes long
...\Codejock Software\MFC\Xtreme ToolkitPro v11.1.0\Source\CommandBars\XTPOffice2007Theme.cpp(92) : {2263} normal block at 0x026158B0, 56 bytes long.
 Data: <4 P             > 34 80 50 01 10 00 00 00 10 00 00 00 10 00 00 00
...\Codejock Software\MFC\Xtreme ToolkitPro v11.1.0\Source\CommandBars\XTPPaintManager.cpp(243) : {2260} client block at 0x02615218, subtype 0, 1636 bytes long.
a CCmdTarget object at $02615218, 1636 bytes long


Here is a modified version of the MainFrm.cpp of the RibbonMDISample, I've added only 2 lines.

uploads/20070417_183141_MainFrm.zip - uploads/20070417_183141_MainFrm.zip

-------



-------



-------

Run the app, open the About dialog and move it over the Ribbon/Frame caption and then close the dialog and then the app --> More memory leaks.

I don't see the memory leaks every time, just play a little bit around and you'll see them.



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


Posted By: Oleg
Date Posted: 18 April 2007 at 1:11am
Hello,
 
As I wrote add
 
CXTPSkinManagerApiHook* pApiHook = CXTPSkinManagerApiHook::GetInstance();
 pApiHook;
 
in end of constructor.


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


Posted By: ABuenger
Date Posted: 18 April 2007 at 5:10am
Fixed.



-------------
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