Print Page | Close Window

[not a bug] v17 (final) 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=22843
Printed Date: 24 December 2024 at 1:11pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [not a bug] v17 (final) Memory leaks
Posted By: Marco1
Subject: [not a bug] v17 (final) Memory leaks
Date Posted: 12 January 2016 at 12:45pm
We are getting memory leaks upon application end. That's new in v17.
There seems to be non deleted objects.
Here's the dump:
x:\xtreme toolkitpro v17.0.0\workspace\toolkitpro\toolkitpro.cpp(167) : atlTraceGeneral - Codejock ToolkitPro Terminating!
Detected memory leaks!
Dumping objects ->
x:\xtreme toolkitpro v17.0.0\source\ribbon\xtpribbonpaintmanager.cpp(212) : {158450} normal block at 0x0BAC0468, 716 bytes long.
 Data: < !s   i t i     > AC 21 73 04 80 88 69 04 74 88 69 04 C4 D5 E9 00
x:\xtreme toolkitpro v17.0.0\source\ribbon\xtpribbonpaintmanager.cpp(209) : {157997} normal block at 0x09A26BD8, 52 bytes long.
 Data: <L!s             > 4C 21 73 04 00 00 00 00 01 00 00 00 00 00 00 00
x:\xtreme toolkitpro v17.0.0\source\ribbon\xtpribbonpaintmanager.cpp(208) : {157067} client block at 0x0BC4EEA0, subtype c0, 324 bytes long.
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\dumpcont.cpp(23) : atlTraceGeneral - a CCmdTarget object at $0BC4EEA0, 324 bytes long
x:\xtreme toolkitpro v17.0.0\source\commandbars\themes\xtpcommandbarsresourcetheme.cpp(149) : {157066} client block at 0x00902B38, subtype c0, 136 bytes long.
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\dumpcont.cpp(23) : atlTraceGeneral - a CXTPRibbonPaintManager object at $00902B38, 136 bytes long
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\strcore.cpp(188) : {145709} normal block at 0x0BC848C8, 36 bytes long.
 Data: < 8              > B0 38 0A 03 08 00 00 00 09 00 00 00 01 00 00 00
x:\xtreme toolkitpro v17.0.0\source\commandbars\themes\xtpcommandbarsthemeribbon.cpp(126) : {145672} normal block at 0x0BCDCD50, 184 bytes long.
 Data: <  m         P=l > 0C 8E 6D 04 01 00 00 00 00 00 00 00 50 3D 6C 04
x:\xtreme toolkitpro v17.0.0\source\commandbars\themes\xtpcommandbarsresourcetheme.cpp(128) : {145671} normal block at 0x0BCD1B20, 60 bytes long.
 Data: <  m t i         > 0C BF 6D 04 74 88 69 04 FF FF FF FF C4 D5 E9 00
x:\xtreme toolkitpro v17.0.0\source\commandbars\themes\xtpcommandbarsresourcetheme.cpp(124) : {145670} normal block at 0x0BCF9C88, 72 bytes long.
 Data: << m     t i     > 3C CF 6D 04 80 CB CF 0B 74 88 69 04 C4 D5 E9 00
x:\xtreme toolkitpro v17.0.0\source\commandbars\themes\xtpcommandbarsresourcetheme.cpp(121) : {145170} normal block at 0x0095D400, 172 bytes long.
 Data: <  m             > B4 EC 6D 04 11 00 00 00 11 00 00 00 11 00 00 00
x:\xtreme toolkitpro v17.0.0\source\commandbars\themes\xtpcommandbarsresourcetheme.cpp(118) : {145169} normal block at 0x099CC748, 12 bytes long.
 Data: <  m         > E8 BF 6D 04 80 CB CF 0B 0C 00 00 00
x:\xtreme toolkitpro v17.0.0\source\commandbars\themes\xtpcommandbarsresourcetheme.cpp(115) : {144669} normal block at 0x09A26758, 48 bytes long.
 Data: <@ m             > 40 C3 6D 04 12 00 00 00 12 00 00 00 11 00 00 00
x:\xtreme toolkitpro v17.0.0\source\commandbars\themes\xtpcommandbarsresourcetheme.cpp(112) : {144668} normal block at 0x0BC84FA8, 36 bytes long.
 Data: <  m             > D8 AB 6D 04 15 00 00 00 13 00 00 00 10 00 00 00
x:\xtreme toolkitpro v17.0.0\source\common\xtphookmanager.cpp(823) : {144664} client block at 0x0BCF0B08, subtype c0, 28 bytes long.
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\dumpcont.cpp(23) : atlTraceGeneral - a CObject object at $0BCF0B08, 28 bytes long
x:\xtreme toolkitpro v17.0.0\source\commandbars\xtppaintmanager.cpp(274) : {144654} client block at 0x0BCD1710, subtype c0, 56 bytes long.
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\dumpcont.cpp(23) : atlTraceGeneral - a CCmdTarget object at $0BCD1710, 56 bytes long
x:\xtreme toolkitpro v17.0.0\source\commandbars\xtppaintmanager.cpp(248) : {143639} normal block at 0x0BBA0AD0, 16 bytes long.
 Data: <  i             > 8C 88 69 04 00 00 00 00 01 00 00 00 00 00 00 00
x:\xtreme toolkitpro v17.0.0\source\commandbars\xtppaintmanager.cpp(247) : {143638} normal block at 0x0BBA0BD0, 16 bytes long.
 Data: <  i `9          > 8C 88 69 04 60 39 C4 0B 01 00 00 00 00 00 00 00
x:\xtreme toolkitpro v17.0.0\source\commandbars\xtppaintmanager.cpp(567) : {143636} client block at 0x0BCFCB80, subtype c0, 1748 bytes long.
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\dumpcont.cpp(23) : atlTraceGeneral - a CXTPRibbonTheme object at $0BCFCB80, 1748 bytes long
Object dump complete.



-------------
Product: XTP 18.3.0 on VS 2017
Platform: VS 2017 / Windows 10 (64bit)



Replies:
Posted By: kstowell
Date Posted: 13 January 2016 at 11:33pm
Make sure you have recompiled all of your objects that link to the toolkit.

-------------
Kirk Stowell, President and CEO
CODEJOCK SOFTWARE SOLUTIONS<


Posted By: sahn
Date Posted: 03 February 2016 at 4:28am
Hello

I did recompile all, but has memory leaks !
???


Detected memory leaks!
Dumping objects ->
d:\3rdparty\toolkitpro\v17\source\graphiclibrary\gdiplus\gdiplusbase.h(104) : {2858542} normal block at 0x092D6C20, 1 bytes long.
 Data: < > CD 
d:\3rdparty\toolkitpro\v17\source\graphiclibrary\gdiplus\gdiplusbase.h(104) : {2858428} normal block at 0x092D6BF0, 1 bytes long.
 Data: < > CD 
d:\3rdparty\toolkitpro\v17\source\graphiclibrary\gdiplus\gdiplusbase.h(104) : {2858322} normal block at 0x092D6BC0, 1 bytes long.
 Data: < > CD 
d:\3rdparty\toolkitpro\v17\source\graphiclibrary\gdiplus\gdiplusbase.h(104) : {2858214} normal block at 0x092D6B90, 1 bytes long.
 Data: < > CD 
d:\3rdparty\toolkitpro\v17\source\graphiclibrary\gdiplus\gdiplusbase.h(104) : {2858134} normal block at 0x092D6B60, 1 bytes long.
 Data: < > CD 
d:\3rdparty\toolkitpro\v17\source\graphiclibrary\gdiplus\gdiplusbase.h(104) : {2858052} normal block at 0x092D7280, 1 bytes long.
 Data: < > CD 
d:\3rdparty\toolkitpro\v17\source\graphiclibrary\gdiplus\gdiplusbase.h(104) : {2857984} normal block at 0x092D7100, 1 bytes long.
 Data: < > CD 
d:\3rdparty\toolkitpro\v17\source\graphiclibrary\gdiplus\gdiplusbase.h(104) : {2857921} normal block at 0x092D7130, 1 bytes long.
 Data: < > CD 
d:\3rdparty\toolkitpro\v17\source\graphiclibrary\gdiplus\gdiplusbase.h(104) : {2857860} normal block at 0x092D7040, 1 bytes long.
 Data: < > CD 
d:\3rdparty\toolkitpro\v17\source\graphiclibrary\gdiplus\gdiplusbase.h(104) : {2857797} normal block at 0x092D7010, 1 bytes long.
 Data: < > CD 
d:\3rdparty\toolkitpro\v17\source\graphiclibrary\gdiplus\gdiplusbase.h(104) : {2857736} normal block at 0x092D6FE0, 1 bytes long
 Data: < > CD 
d:\3rdparty\toolkitpro\v17\source\graphiclibrary\gdiplus\gdiplusbase.h(104) : {2857681} normal block at 0x092D72B0, 1 bytes long.
 Data: < > CD 
d:\3rdparty\toolkitpro\v17\source\graphiclibrary\gdiplus\gdiplusbase.h(104) : {2857634} normal block at 0x092D6EC0, 1 bytes long.
 Data: < > CD 
d:\3rdparty\toolkitpro\v17\source\graphiclibrary\gdiplus\gdiplusbase.h(104) : {2857585} normal block at 0x092D6FB0, 1 bytes long.
 Data: < > CD 
d:\3rdparty\toolkitpro\v17\source\graphiclibrary\gdiplus\gdiplusbase.h(104) : {2857538} normal block at 0x092D6F80, 1 bytes long.
 Data: < > CD 
d:\3rdparty\toolkitpro\v17\source\graphiclibrary\gdiplus\gdiplusbase.h(104) : {2857490} normal block at 0x092D6F50, 1 bytes long.
 Data: < > CD 
d:\3rdparty\toolkitpro\v17\source\graphiclibrary\gdiplus\gdiplusbase.h(104) : {2621710} normal block at 0x092D6EF0, 1 bytes long.
 Data: < > CD 
d:\3rdparty\toolkitpro\v17\source\graphiclibrary\gdiplus\gdiplusbase.h(104) : {2549564} normal block at 0x092D6E90, 1 bytes long.
 Data: < > CD 
d:\3rdparty\toolkitpro\v17\source\graphiclibrary\gdiplus\gdiplusbase.h(104) : {2549215} normal block at 0x092D6E60, 1 bytes long.
 Data: < > CD 
d:\3rdparty\toolkitpro\v17\source\graphiclibrary\gdiplus\gdiplusbase.h(104) : {2341519} normal block at 0x092D72E0, 1 bytes long.
 Data: < > CD 
d:\3rdparty\toolkitpro\v17\source\graphiclibrary\gdiplus\gdiplusbase.h(104) : {2337365} normal block at 0x092D7B80, 1 bytes long.
 Data: < > CD 
d:\3rdparty\toolkitpro\v17\source\graphiclibrary\gdiplus\gdiplusbase.h(104) : {2330445} normal block at 0x092D7BB0, 1 bytes long.
 Data: < > CD 
d:\3rdparty\toolkitpro\v17\source\graphiclibrary\gdiplus\gdiplusbase.h(104) : {2328782} normal block at 0x03C3F020, 1 bytes long
 Data: < > CD 
d:\3rdparty\toolkitpro\v17\source\graphiclibrary\gdiplus\gdiplusbase.h(104) : {1507014} normal block at 0x06FB4AB8, 1 bytes long.
 Data: < > CD 
Object dump complete.


Posted By: sirhaden
Date Posted: 18 March 2016 at 7:50am
Using VS2015 Update 1 and Toolkit Pro 17.1.0 in Static Unicode Debug configuration results in many reported memory leaks. This was first noticed after migrating to VS2015 from VS2010. Only tabmanager, commandbars and dockingpane are used and not excluded during the Toolkit Pro includes.

Sample Debug Output
-------------------

Detected memory leaks!
Dumping objects ->
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\tooltip.cpp(416) : {12516} client block at 0x00895478, subtype c0, 160 bytes long.
Data: <H               > 48 FB BC 01 01 00 00 00 00 00 00 00 00 00 00 00
c:\program files (x86)\microsoft visual studio 14.0\vc\atlmfc\include\afxtempl.h(398) : {12255} normal block at 0x0082BDC0, 4 bytes long.
Data: <    > C8 A6 89 00
..\..\Source\TabManager\XTPTabManager.cpp(489) : {12254} client block at 0x0089A6C8, subtype c0, 140 bytes long.
Data: <               > B8 AD A1 01 01 00 00 00 00 00 00 00 00 00 00 00
{11374} normal block at 0x0082D9E8, 12 bytes long.
Data: < N          > EC 4E 86 00 00 00 00 00 01 00 00 00
{11252} client block at 0x0089A780, subtype c0, 8464 bytes long.
Data: < Y              > 98 59 88 01 01 00 00 00 00 00 00 00 00 00 00 00
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\plex.cpp(29) : {11207} normal block at 0x05B1A0C8, 128 bytes long.
Data: <               > 00 00 00 00 CD CD CD CD 00 00 00 00 00 00 00 00
..\..\Source\DockingPane\XTPDockingPaneSplitterContainer.cpp(418) : {11199} client block at 0x0083BAC0, subtype c0, 152 bytes long.
Data: <0               > 30 9C 92 01 01 00 00 00 00 00 00 00 00 00 00 00


UPDATE: User error, memory leaks not detection.


Posted By: markr
Date Posted: 18 March 2016 at 10:15am
Can you reproduce this problem with any of the sample projects?

- Mark R.


Posted By: sirhaden
Date Posted: 18 March 2016 at 10:22am
Sorry, user error. Not an issue.


Posted By: sdancer75
Date Posted: 24 May 2016 at 1:36am
Hi,

I have the same problem. How did you solve the problem ?




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



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