Print Page | Close Window

Memory leaks and resource 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=3128
Printed Date: 20 May 2025 at 4:21am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Memory leaks and resource leaks?
Posted By: zhou_wz
Subject: Memory leaks and resource leaks?
Date Posted: 30 October 2005 at 1:58am

I used boundchecker 6.5 to debug the any sample debug exe. such as GUI_VisualStudio7d.exe

The boundchecker reported some memory leaks such as
in CXTPPaintManager

CXTPPaintManager* CXTPPaintManager::CreateTheme(XTPPaintTheme paintTheme)
{
...
 if (paintTheme == xtpThemeOfficeXP) pInstance = new CXTPOfficeTheme();
...

it said the 'new' has memory leak...

and in some other file had same memory leak alarm....

Could anyone verify and explain it?




Replies:
Posted By: Oleg
Date Posted: 31 October 2005 at 1:41am

This memory will be free in

void CXTPPaintManager::Done()
 

as you can see in Visual Studio output, there are no leak reports after application terminate.

 



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


Posted By: zhou_wz
Date Posted: 31 October 2005 at 7:35pm

Yes Oleg,
I check it is a good trick to release the memory.
But I wonder why boundchecker report and visual studio not. Is it because the .dll is called?



Posted By: Oleg
Date Posted: 04 November 2005 at 12:14am

 

Have no idea. :)



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



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