Print Page | Close Window

A lot of Memory leaks

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=2729
Printed Date: 23 December 2024 at 1:53pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: A lot of Memory leaks
Posted By: gniwon
Subject: A lot of Memory leaks
Date Posted: 16 August 2005 at 12:50am

My application is based on GUI_Eclipse sample.
I cant understand why I have memory leaks on the following lines of code:

If create Toolbar, following Memory leaks happens.

Detected memory leaks!
Dumping objects ->
c:\program files\codejock software\mfc\xtreme toolkit pro v9.60\src\controls\common.src\theme\xtsplittertheme.cpp(35) : {9353} normal block at 0x01B51C88, 20 bytes long.

c:\program files\codejock software\mfc\xtreme toolkit pro v9.60\src\commonpro.src\xtpimagemanager.cpp(1331) : {5160} client block at 0x01B2B818, subtype c0, 164 bytes long.
a CCmdTarget object at $01B2B818, 164 bytes long
c:\program files\codejock software\mfc\xtreme toolkit pro v9.60\src\commonpro.src\xtpimagemanager.cpp(1597) : {5159} client block at 0x01B2B798, subtype c0, 68 bytes long.
a CCmdTarget object at $01B2B798, 68 bytes long...
..
..
..

c:\program files\codejock software\mfc\xtreme toolkit pro v9.60\src\commandbars\xtpcontrolcomboboxext.cpp(352) : {2494} normal block at 0x01B20F70, 16 bytes long.
 Data: <    (           ; ; > D0 0F B2 01 28 10 B2 01 02 02 CD CD 00 02 00 00
{2492} normal block at 0x01B20F18, 21 bytes long.
 Data: <  2|         & ;nbs p;  > D8 9C 32 7C 04 00 00 00 04 00 00 00 01 00 00 00
{2491} normal block at 0x01B20EC0, 25 bytes long.
 Data: <  2|         & ;nbs p;  > D8 9C 32 7C 08 00 00 00 08 00 00 00 01 00 00 00
c:\program files\codejock software\mfc\xtreme toolkit pro v9.60\src\commandbars\xtpcontrolcomboboxext.cpp(352) : {2490} normal block at 0x01B20E70, 16 bytes long.
 Data: <    (           ; ; > D0 0E B2 01 28 0F B2 01 02 12 CD CD 00 02 00 00
{2475} normal block at 0x01B20E18, 21 bytes long.
 Data: <  2|         & ;nbs p;  > D8 9C 32 7C 04 00 00 00 04 00 00 00 01 00 00 00
{2474} normal block at 0x01B20DC0, 23 bytes long.
 Data: <  2|         & ;nbs p;  > D8 9C 32 7C 06 00 00 00 06 00 00 00 01 00 00 00
c:\program files\codejock software\mfc\xtreme toolkit pro v9.60\src\commandbars\xtpcontrolcomboboxext.cpp(352) : {2473} normal block at 0x01B20D70, 16 bytes long.
 Data: <    (           ; ; > D0 0D B2 01 28 0E B2 01 81 12 CD CD 00 02 00 00
{2470} normal block at 0x01B20D18, 21 bytes long.
 Data: <  2|         & ;nbs p;  > D8 9C 32 7C 04 00 00 00 04 00 00 00 01 00 00 00
{2469} normal block at 0x01B20CC0, 24 bytes long.
 Data: <  2|         & ;nbs p;  > D8 9C 32 7C 07 00 00 00 07 00 00 00 01 00 00 00
c:\program files\codejock software\mfc\xtreme toolkit pro v9.60\src\commandbars\xtpcontrolcomboboxext.cpp(352) : {2468} normal block at 0x01B20C70, 16 bytes long.
 Data: <    (           ; ; > D0 0C B2 01 28 0D B2 01 81 12 CD CD 00 02 00 00
{2465} normal block at 0x01B20C18, 21 bytes long.
 Data: <  2|         & ;nbs p;  > D8 9C 32 7C 04 00 00 00 04 00 00 00 01 00 00 00
{2464} normal block at 0x01B20BC0, 28 bytes long.
 Data: <  2|         & ;nbs p;  > D8 9C 32 7C 0B 00 00 00 0B 00 00 00 01 00 00 00
..
..
..
..
c:\program files\codejock software\mfc\xtreme toolkit pro v9.60\workspace\xtptoolkit_dll\xtptoolkit_dll.cpp(51) : {120} client block at 0x003E62D0, subtype c0, 64 bytes long.
a CDynLinkLibrary object at $003E62D0, 64 bytes long



-------------
jini



Replies:
Posted By: Oleg
Date Posted: 16 August 2005 at 2:29am
Can you attach project here or in issue trsck?

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


Posted By: gniwon
Date Posted: 19 August 2005 at 7:06pm
I solved this matter.

-------------
jini


Posted By: sdancer75
Date Posted: 23 May 2016 at 4:20pm
I have the same problem. What did you do to solve the problem ?




-------------
Just me!


Posted By: Alex H.
Date Posted: 24 May 2016 at 5:23am
I have other objects (XTP 17.2)

..\..\Source\Markup\XTPMarkupObject.cpp(461) : {1352630} normal block at 0x1081BC50, 536 bytes long.
 Data: <                > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
..\..\Source\Markup\XTPMarkupObject.cpp(598) : {1352629} normal block at 0x0EFB80A8, 4 bytes long.
 Data: <    > 01 00 00 00
..\..\Source\Markup\XTPMarkupObject.cpp(717) : {1352628} client block at 0x0B97C140, subtype c0, 108 bytes long.
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\dumpcont.cpp(23) : atlTraceGeneral - a CCmdTarget object at $0B97C140, 108 bytes long
..\..\Source\Markup\XTPMarkupObject.cpp(598) : {1352627} normal block at 0x0B9811A8, 4 bytes long.
 Data: <    > 01 00 00 00
..\..\Source\Markup\XTPMarkupDrawingContext.cpp(474) : {1352626} client block at 0x105E5978, subtype c0, 100 bytes long.
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\dumpcont.cpp(23) : atlTraceGeneral - a CCmdTarget object at $105E5978, 100 bytes long
..\..\Source\Markup\XTPMarkupObject.cpp(598) : {1352625} normal block at 0x08169B40, 4 bytes long.
 Data: <    > 01 00 00 00
..\..\Source\CommandBars\Frame\XTPFrameThemeModernUI.cpp(192) : {1352624} client block at 0x1761BA28, subtype c0, 96 bytes long.
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\dumpcont.cpp(23) : atlTraceGeneral - a CCmdTarget object at $1761BA28, 96 bytes long
..\..\Source\Markup\XTPMarkupObject.cpp(461) : {1352613} normal block at 0x0EAE1768, 536 bytes long.
 Data: <                > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
..\..\Source\Markup\XTPMarkupObject.cpp(598) : {1352612} normal block at 0x1056ECB8, 4 bytes long.
 Data: <    > 01 00 00 00
..\..\Source\Markup\XTPMarkupObject.cpp(717) : {1352611} client block at 0x0BA54E88, subtype c0, 108 bytes long.
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\dumpcont.cpp(23) : atlTraceGeneral - a CCmdTarget object at $0BA54E88, 108 bytes long
..\..\Source\Markup\XTPMarkupObject.cpp(598) : {1352610} normal block at 0x1761BED0, 4 bytes long.
 Data: <    > 01 00 00 00
..\..\Source\Markup\XTPMarkupDrawingContext.cpp(474) : {1352609} client block at 0x105F6580, subtype c0, 100 bytes long.
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\dumpcont.cpp(23) : atlTraceGeneral - a CCmdTarget object at $105F6580, 100 bytes long
..\..\Source\Markup\XTPMarkupObject.cpp(598) : {1352608} normal block at 0x0BB21A48, 4 bytes long.
 Data: <    > 01 00 00 00
..\..\Source\CommandBars\Frame\XTPFrameThemeModernUI.cpp(191) : {1352607} client block at 0x0EAF66A8, subtype c0, 96 bytes long.
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\dumpcont.cpp(23) : atlTraceGeneral - a CCmdTarget object at $0EAF66A8, 96 bytes long
..\..\Source\Markup\XTPMarkupObject.cpp(461) : {1352575} normal block at 0x105CD030, 536 bytes long.



Posted By: sdancer75
Date Posted: 24 May 2016 at 2:23pm
Problem sovled. It was a false alarm.

I just used _CrtDumpMemoryLeaks(); in a wrong position.

Regards



-------------
Just me!


Posted By: Sergio
Date Posted: 15 November 2016 at 11:08am
Hi Alex,

Have you solved your memory leaks ?

I have the same problem.

Thanks


-------------
Sergio


Posted By: Alex H.
Date Posted: 15 November 2016 at 11:12am
Hi Sergio!
No more Leaks awith XTP 17.3!

:-)


Posted By: Sergio
Date Posted: 23 November 2016 at 8:39am
Hi Alex,

OK, thanks!


-------------
Sergio



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