Leak not being detected.

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

Leak not being detected.

Post by david_navigator »

I've added the following code to my form, but it's not showing up as a leak (other leaks are).
What might be wrong ?

Code: Select all

procedure TMainGUI_Form.FormShow(Sender: TObject);
var
lLeakCheckList : TStringlist;
begin
  lLeakCheckList := TStringList.Create;
  lLeakCheckList.Add('Expect to see this leak');
  showmessage(lLeakCheckList.Text);
end;
I see the showmessage, so I know the code is running.

David
david_navigator
Posts: 21
Joined: Thu Feb 22, 2018 8:45 pm

Re: Leak not being detected.

Post by david_navigator »

Odd. Fixed a few real leaks and now this leak is showing ... Computers eh?!
madshi
Site Admin
Posts: 10766
Joined: Sun Mar 21, 2004 5:25 pm

Re: Leak not being detected.

Post by madshi »

Strange indeed!
Post Reply