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

A lot of Memory leaks

 Post Reply Post Reply
Author
Message
gniwon View Drop Down
Newbie
Newbie


Joined: 11 August 2005
Location: Korea, South
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote gniwon Quote  Post ReplyReply Direct Link To This Post Topic: A lot of Memory leaks
    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
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: 16 August 2005 at 2:29am
Can you attach project here or in issue trsck?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
gniwon View Drop Down
Newbie
Newbie


Joined: 11 August 2005
Location: Korea, South
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote gniwon Quote  Post ReplyReply Direct Link To This Post Posted: 19 August 2005 at 7:06pm
I solved this matter.
jini
Back to Top
sdancer75 View Drop Down
Groupie
Groupie
Avatar

Joined: 08 July 2008
Location: Greece
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote sdancer75 Quote  Post ReplyReply Direct Link To This Post Posted: 23 May 2016 at 4:20pm
I have the same problem. What did you do to solve the problem ?


Just me!
Back to Top
Alex H. View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 February 2004
Status: Offline
Points: 266
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alex H. Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
sdancer75 View Drop Down
Groupie
Groupie
Avatar

Joined: 08 July 2008
Location: Greece
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote sdancer75 Quote  Post ReplyReply Direct Link To This Post 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!
Back to Top
Sergio View Drop Down
Senior Member
Senior Member
Avatar

Joined: 18 September 2006
Status: Offline
Points: 216
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sergio Quote  Post ReplyReply Direct Link To This Post Posted: 15 November 2016 at 11:08am
Hi Alex,

Have you solved your memory leaks ?

I have the same problem.

Thanks
Sergio
Back to Top
Alex H. View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 February 2004
Status: Offline
Points: 266
Post Options Post Options   Thanks (1) Thanks(1)   Quote Alex H. Quote  Post ReplyReply Direct Link To This Post Posted: 15 November 2016 at 11:12am
Hi Sergio!
No more Leaks awith XTP 17.3!

:-)
Back to Top
Sergio View Drop Down
Senior Member
Senior Member
Avatar

Joined: 18 September 2006
Status: Offline
Points: 216
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sergio Quote  Post ReplyReply Direct Link To This Post Posted: 23 November 2016 at 8:39am
Hi Alex,

OK, thanks!
Sergio
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.141 seconds.