Running Delphi 10.4 (32 bit).
var sl: tStringlist;
sl := TStringList.create;
sl.add('This should create an error on close');
I get an error indication if I set " ReportMemoryLeaksOnShutdown := DebugHook <> 0;"
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?