Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Set Layout causes Memory Leaks
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Set Layout causes Memory Leaks

 Post Reply Post Reply
Author
Message
dedvalson View Drop Down
Groupie
Groupie


Joined: 10 April 2008
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote dedvalson Quote  Post ReplyReply Direct Link To This Post Topic: Set Layout causes Memory Leaks
    Posted: 12 June 2008 at 1:51pm
Hi,
 
I have an MDI application that uses command bars, docking panes and the MTI tabbed stuff.
 
When the application exits, I save the Docking States and restore it again at startup. If there is no docking state saved, I create the Docking Panes otherwise, I just let the SetLayout do it.
 
I have found that when I exit the app, if I created the Docking Panes, there are no leaks, but if I have called SetLayout using a layout stored in the registry, I get the memory leaks below.
 
I assume that I am failing some cleanup somewhere. Does anyone have suggestions?
 

c:\program files\codejock software\mfc\xtreme toolkitpro v11.2.2\source\dockingpane\xtpdockingpanemanager.cpp(397) : {2386} client block at 0x08004668, subtype c0, 88 bytes long.

a CCmdTarget object at $08004668, 88 bytes long

c:\program files\codejock software\mfc\xtreme toolkitpro v11.2.2\source\dockingpane\xtpdockingpanetabbedcontainer.cpp(149) : {2383} client block at 0x080045F0, subtype c0, 56 bytes long.

a CCmdTarget object at $080045F0, 56 bytes long

c:\program files\codejock software\mfc\xtreme toolkitpro v11.2.2\source\dockingpane\xtpdockingpanetabbedcontainer.cpp(147) : {2382} normal block at 0x08004590, 36 bytes long.

Data: < > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

c:\program files\codejock software\mfc\xtreme toolkitpro v11.2.2\source\dockingpane\xtpdockingpanetabbedcontainer.cpp(146) : {2381} normal block at 0x08004530, 36 bytes long.

Data: < > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

c:\program files\codejock software\mfc\xtreme toolkitpro v11.2.2\source\dockingpane\xtpdockingpanetabbedcontainer.cpp(145) : {2380} normal block at 0x080044D0, 36 bytes long.

Data: < > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

{2379} normal block at 0x08004480, 20 bytes long.

Data: < C D D 0E > C0 43 00 08 20 44 00 08 D0 44 00 08 30 45 00 08

c:\program files\codejock software\mfc\xtreme toolkitpro v11.2.2\source\dockingpane\xtpdockingpanetabbedcontainer.cpp(144) : {2378} normal block at 0x08004420, 36 bytes long.

Data: < > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

c:\program files\codejock software\mfc\xtreme toolkitpro v11.2.2\source\dockingpane\xtpdockingpanetabbedcontainer.cpp(143) : {2376} normal block at 0x080043C0, 36 bytes long.

Data: < > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

c:\program files\codejock software\mfc\xtreme toolkitpro v11.2.2\source\dockingpane\xtpdockingpanetabbedcontainer.cpp(142) : {2375} client block at 0x08004370, subtype c0, 20 bytes long.

a CObject object at $08004370, 20 bytes long

{2374} normal block at 0x08004308, 38 bytes long.

Data: < > 84 AB F2 02 0A 00 00 00 0A 00 00 00 01 00 00 00

{2373} normal block at 0x080042B0, 28 bytes long.

Data: < > 84 AB F2 02 05 00 00 00 05 00 00 00 01 00 00 00

c:\program files\codejock software\mfc\xtreme toolkitpro v11.2.2\source\tabmanager\xtptabmanager.cpp(688) : {2372} normal block at 0x08004240, 48 bytes long.

Data: <L] 0? > 4C 5D E6 02 02 00 00 00 00 00 00 00 30 3F 00 08

{2371} normal block at 0x07FF49F8, 20 bytes long.

Data: < @ hA @B > 90 40 00 08 68 41 00 08 40 42 00 08 CD CD CD CD

{2370} normal block at 0x080041D8, 42 bytes long.

Data: < > 84 AB F2 02 0C 00 00 00 0C 00 00 00 01 00 00 00

c:\program files\codejock software\mfc\xtreme toolkitpro v11.2.2\source\tabmanager\xtptabmanager.cpp(687) : {2369} normal block at 0x08004168, 48 bytes long.

Data: <$] 0? > 24 5D E6 02 01 00 00 00 01 00 00 00 30 3F 00 08

{2367} normal block at 0x08004100, 40 bytes long.

Data: < > 84 AB F2 02 0B 00 00 00 0B 00 00 00 01 00 00 00

c:\program files\codejock software\mfc\xtreme toolkitpro v11.2.2\source\tabmanager\xtptabmanager.cpp(686) : {2366} normal block at 0x08004090, 48 bytes long.

Data: < \ 0? > D4 5C E6 02 00 00 00 00 01 00 00 00 30 3F 00 08

c:\program files\codejock software\mfc\xtreme toolkitpro v11.2.2\source\tabmanager\xtptabmanager.cpp(457) : {2365} normal block at 0x08002ED0, 8 bytes long.

Data: < > 00 00 00 00 FF FF FF FF

c:\program files\codejock software\mfc\xtreme toolkitpro v11.2.2\source\tabmanager\xtptabmanager.cpp(684) : {2364} normal block at 0x07FF4698, 12 bytes long.

Data: < . 0? > D0 2E 00 08 01 00 00 00 30 3F 00 08

c:\program files\codejock software\mfc\xtreme toolkitpro v11.2.2\source\dockingpane\xtpdockingpanemanager.cpp(393) : {2363} client block at 0x08003E88, subtype c0, 456 bytes long.

a CXTPDockingPaneTabbedContainer object at $08003E88, 456 bytes long

c:\program files\codejock software\mfc\xtreme toolkitpro v11.2.2\source\dockingpane\xtpdockingpanemanager.cpp(389) : {2360} client block at 0x08003DB0, subtype c0, 152 bytes long.

a CCmdTarget object at $08003DB0, 152 bytes long

c:\program files\codejock software\mfc\xtreme toolkitpro v11.2.2\source\dockingpane\xtpdockingpanetabbedcontainer.cpp(149) : {2357} client block at 0x08003D38, subtype c0, 56 bytes long.

a CCmdTarget object at $08003D38, 56 bytes long

c:\program files\codejock software\mfc\xtreme toolkitpro v11.2.2\source\dockingpane\xtpdockingpanetabbedcontainer.cpp(147) : {2356} normal block at 0x08003CD8, 36 bytes long.

Data: < > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

c:\program files\codejock software\mfc\xtreme toolkitpro v11.2.2\source\dockingpane\xtpdockingpanetabbedcontainer.cpp(146) : {2355} normal block at 0x08003C78, 36 bytes long.

Data: < > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

c:\program files\codejock software\mfc\xtreme toolkitpro v11.2.2\source\dockingpane\xtpdockingpanetabbedcontainer.cpp(145) : {2354} normal block at 0x08003C18, 36 bytes long.

Data: < > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

{2353} normal block at 0x07FF7080, 20 bytes long.

Data: <X; ; < x< > 58 3B 00 08 B8 3B 00 08 18 3C 00 08 78 3C 00 08

c:\program files\codejock software\mfc\xtreme toolkitpro v11.2.2\source\dockingpane\xtpdockingpanetabbedcontainer.cpp(144) : {2352} normal block at 0x08003BB8, 36 bytes long.

Data: < > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

c:\program files\codejock software\mfc\xtreme toolkitpro v11.2.2\source\dockingpane\xtpdockingpanetabbedcontainer.cpp(143) : {2350} normal block at 0x08003B58, 36 bytes long.

Data: < > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

c:\program files\codejock software\mfc\xtreme toolkitpro v11.2.2\source\dockingpane\xtpdockingpanetabbedcontainer.cpp(142) : {2349} client block at 0x07FFD1E0, subtype c0, 20 bytes long.

a CObject object at $07FFD1E0, 20 bytes long

{2348} normal block at 0x08003AF0, 38 bytes long.

Data: < > 84 AB F2 02 0A 00 00 00 0A 00 00 00 01 00 00 00

{2347} normal block at 0x08003A98, 28 bytes long.

Data: < > 84 AB F2 02 05 00 00 00 05 00 00 00 01 00 00 00

c:\program files\codejock software\mfc\xtreme toolkitpro v11.2.2\source\tabmanager\xtptabmanager.cpp(688) : {2346} normal block at 0x08003A28, 48 bytes long.

Data: <L] 7 > 4C 5D E6 02 02 00 00 00 00 00 00 00 18 37 00 08

{2345} normal block at 0x07FFEE38, 20 bytes long.

Data: <x8 P9 (: > 78 38 00 08 50 39 00 08 28 3A 00 08 CD CD CD CD

{2344} normal block at 0x080039C0, 42 bytes long.

Data: < > 84 AB F2 02 0C 00 00 00 0C 00 00 00 01 00 00 00

c:\program files\codejock software\mfc\xtreme toolkitpro v11.2.2\source\tabmanager\xtptabmanager.cpp(687) : {2343} normal block at 0x08003950, 48 bytes long.

Data: <$] 7 > 24 5D E6 02 01 00 00 00 01 00 00 00 18 37 00 08

{2341} normal block at 0x080038E8, 40 bytes long.

Data: < > 84 AB F2 02 0B 00 00 00 0B 00 00 00 01 00 00 00

c:\program files\codejock software\mfc\xtreme toolkitpro v11.2.2\source\tabmanager\xtptabmanager.cpp(686) : {2340} normal block at 0x08003878, 48 bytes long.

Data: < \ 7 > D4 5C E6 02 00 00 00 00 01 00 00 00 18 37 00 08

c:\program files\codejock software\mfc\xtreme toolkitpro v11.2.2\source\tabmanager\xtptabmanager.cpp(457) : {2339} normal block at 0x07FE1358, 8 bytes long.

Data: < > 00 00 00 00 FF FF FF FF

c:\program files\codejock software\mfc\xtreme toolkitpro v11.2.2\source\tabmanager\xtptabmanager.cpp(684) : {2338} normal block at 0x07FF6168, 12 bytes long.

Data: <X 7 > 58 13 FE 07 01 00 00 00 18 37 00 08

c:\program files\codejock software\mfc\xtreme toolkitpro v11.2.2\source\dockingpane\xtpdockingpanemanager.cpp(393) : {2337} client block at 0x08003670, subtype c0, 456 bytes long.

a CXTPDockingPaneTabbedContainer object at $08003670, 456 bytes long

c:\program files\codejock software\mfc\xtreme toolkitpro v11.2.2\source\dockingpane\xtpdockingpanemanager.cpp(389) : {2334} client block at 0x08003598, subtype c0, 152 bytes long.

a CCmdTarget object at $08003598, 152 bytes long

{2331} normal block at 0x08003530, 38 bytes long.

Data: < > 84 AB F2 02 0A 00 00 00 0A 00 00 00 01 00 00 00

c:\program files\codejock software\mfc\xtreme toolkitpro v11.2.2\source\dockingpane\xtpdockingpanemanager.cpp(385) : {2330} client block at 0x08003408, subtype c0, 232 bytes long.

a CCmdTarget object at $08003408, 232 bytes long

{2325} normal block at 0x08003240, 38 bytes long.

Data: < > 84 AB F2 02 0A 00 00 00 0A 00 00 00 01 00 00 00

f:\sp\vctools\vc7libs\ship\atlmfc\src\mfc\plex.cpp(29) : {2324} normal block at 0x08002E18, 124 bytes long.

Data: < (. 81 > 00 00 00 00 28 2E 00 08 00 00 00 00 38 31 00 08

c:\program files\codejock software\mfc\xtreme toolkitpro v11.2.2\source\dockingpane\xtpdockingpanemanager.cpp(385) : {2323} client block at 0x08003118, subtype c0, 232 bytes long.

a CCmdTarget object at $08003118, 232 bytes long

.\MainFrm.cpp(694) : {2310} client block at 0x08002B70, subtype c0, 136 bytes long.

a CCmdTarget object at $08002B70, 136 bytes long

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: 13 June 2008 at 6:39am
Hi,
Try to reproduce it with any our sample.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.063 seconds.