Not reporting TStringlist left open (5.10)

delphi package - automated exception handling

Not reporting TStringlist left open (5.10)

Postby robrietow06 » Thu Nov 05, 2020 7:17 pm

I just installed madExcept 5.10. I did the below and madExcept does not show an error.

Running Delphi 10.4 (32 bit).

var sl: tStringlist;
begin
sl := TStringList.create;
sl.add('This should create an error on close');
end;

I get an error indication if I set " ReportMemoryLeaksOnShutdown := DebugHook <> 0;"
robrietow06
 
Posts: 1
Joined: Fri Dec 07, 2018 7:38 pm

Re: Not reporting TStringlist left open (5.10)

Postby madshi » Thu Nov 05, 2020 9:27 pm

Do you get a report like "No leaks found - well done"? Or don't you get any report at all? If you don't get any report at all (same as if you wouldn't have leak reporting enabled), then something is wrong.

FYI, your EXE needs to find madExcept32.dll to be able to do leak reporting. On your dev PC (if madExcept is properly installed), your EXE should find the dll automatically. But if you run your EXE on a different PC, the DLL will not be there, of course. You can simply distribute madExcept32.dll with your EXE file (same folder) to make leak reporting work on another PC.

Hope that helps?
madshi
Site Admin
 
Posts: 10303
Joined: Sun Mar 21, 2004 5:25 pm


Return to madExcept

Who is online

Users browsing this forum: Google [Bot] and 16 guests