Hiding a leak

delphi package - automated exception handling
Post Reply
david_navigator
Posts: 21
Joined: Thu Feb 22, 2018 8:45 pm

Hiding a leak

Post by david_navigator »

Is there anyway to hide a leak based on the callstack AND the size ?

I'm currently hiding this leak

madexcept.HideLeak('VirtualAllocCallback|TnxMemoryStream.msRealloc');

but the scenarios where it's a false positive are where the leak is exactly 4096 bytes. If it's any more or any less then I need to investigate.

Is this possible ?

Cheers

David
madshi
Site Admin
Posts: 10766
Joined: Sun Mar 21, 2004 5:25 pm

Re: Hiding a leak

Post by madshi »

No, that's not a feature that is supported. Of course you can always post-process the leak report yourself.
david_navigator
Posts: 21
Joined: Thu Feb 22, 2018 8:45 pm

Re: Hiding a leak

Post by david_navigator »

Thanks.

Could I do that before the leak report is displayed or do you mean doing something afterwards ?

Cheers

David
iconic
Site Admin
Posts: 1068
Joined: Wed Jun 08, 2005 5:08 am

Re: Hiding a leak

Post by iconic »

Hello,

The information is available for you to parse yourself after it's POSTed, after the info is collected. So yes, you'd need to do such a specific task of (parsing out the information) afterwards to alter the report info.

--Iconic
Post Reply