Paul at NCF Guest
|
Posted: Fri Aug 25, 2006 1:49 am Post subject: HELP: Codeguard in BCB6 Pro.... |
|
|
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 |
|