I\'ve created a console application and set ReportMemoryLeaksOnShutdown := True.
I\'ve created a TStringList but did not free it.
When the program finishes
var SaveExitProcessProc: procedure; s: TStringList; procedure MyExitProcessProc; begin ExitProcessProc := SaveExitProcessProc; readln; end; begin SaveExitProcessProc := ExitProcessProc; ExitProcessProc := MyExitProcessProc; ReportMemoryLeaksOnShutdown := True; s := TStringList.Create; end.