FastMM fails to detect memory leaks
Asked Answered
I

1

8

I'm using FastMM 4.97 in my application in Delphi5.

Everything works well, if I run my application from the IDE with an intentional leak for test purposes. I get proper notices and error logs.

However nothing happens if I run my application outside of the IDE (run the .exe file from say Windows Explorer).

Am I missing something? Is this behavior intended? Can it be changed?

Imprecision answered 8/9, 2011 at 7:48 Comment(0)
C
18

This is expected if RequireIDEPresenceForLeakReporting is defined in FastMM4.pas (if Delphi is not running while you're running your program outside the IDE). Also see InstallOnlyIfRunningInIDE, if this define is set the default memory manager is used if you run the program outside the IDE (this define is automatically defined if FullDebugModeInIDE is defined).

You can use "FastMM4 Options Interface" for easy setting/viewing defines, highly recommended.

Comminate answered 8/9, 2011 at 8:9 Comment(1)
Thanks, Sertac. That interface really saves a lot of time!Imprecision

© 2022 - 2024 — McMap. All rights reserved.