Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Memory leaks in 11.1
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Memory leaks in 11.1

 Post Reply Post Reply
Author
Message
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Topic: Memory leaks in 11.1
    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
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: 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
Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post 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

-------



-------



-------

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
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 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
Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 18 April 2007 at 5:10am
Fixed.

Codejock support
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.234 seconds.