BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

HELP: Codeguard in BCB6 Pro....

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE)
View previous topic :: View next topic  
Author Message
Paul at NCF
Guest





PostPosted: Fri Aug 25, 2006 1:49 am    Post subject: HELP: Codeguard in BCB6 Pro.... Reply with quote



Hi,

We have just switched on a bit of functionality on a system and its shown a
large memory leak, which I need to resolve. However, in my investigation
I've found that Code guard doesn't appear to trace memory leaks relating to
VCL components. eg. the following traps the char leakage, but not the
label.

__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
for (int i = 0; (i<50); i++ )
{
TLabel * L = new TLabel(NULL);
char * C = new char [1];
}
}

I've searched the groups, and this seems to have been discussed way back in
2002, and seems to confirm my findings. Please can someone confirm this to
be the case? Or is there a way around it?

If this is the case, how can I track down the memory leak with VCL
components? It seems a bit strange to not track this since VCL is the main
thing we are using in the IDE.

I think the leakage is in a 3rd party component I am using (AidAim
CryptoPress), but its a bit hard to definitely prove.

Does anyone have any advice or suggestions, as I have to get this fixed, and
its just my luck that I am supposed to go on holiday in the next few days!

Regards,

Paul
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.