01-23-2019, 07:08 AM
There is a function (deprecated I think) named DebugHook that indicates whether you are running in the IDE debugger. I don't know if it's available in the latest Delphi, but still works fine in XE2. You can still compile in debug mode and run outside the IDE without the trigger.
http://docwiki.embarcadero.com/Libraries....DebugHook
I generally put this up top:
ReportMemoryLeaksOnShutdown := DebugHook <> 0;
Dan
http://docwiki.embarcadero.com/Libraries....DebugHook
I generally put this up top:
ReportMemoryLeaksOnShutdown := DebugHook <> 0;
Dan