Jump to content
Alberto Paganini

Delete FastMM4 MemoryManager_EventLog.txt

Recommended Posts

I use FastMM4 to check memory leaks and I noticed the report file " MyApplicatoin+MemoryManager_EventLog.txt" is not deleted automatically once I have amended the source and I run my application again. This way if there are still memory leaks they are added to the existing report and this confuses me.

Is there an option in FastMM4 to achieve that I am not aware of or do I have to rely on DeleteFile(...) when I run the application ?

 

Many thanks

Alberto

Share this post


Link to post
Quote

It's automatically deleted here. Try setting up a brand new app and check how it behaves there. 

 

I did and created this test:

program Project3;

{$APPTYPE CONSOLE}

{$R *.res}

uses
  FastMM4,
  system.Classes,
  System.SysUtils;

  var t:tstringlist;
begin
    t:=TStringList.Create;
end.

I ran it a number of times and the new reports are appended to the old ones. Obviously there must be something wrong in my FastMM4  settings. I will look into that.

 

 

Share this post


Link to post

This can be changed via the

FastMM4Options.inc

file if I remember correctly (sorry not a a development machine to be more precise) and possible with directives defined in the project.

The settings is 

{.$define ClearLogFileOnStartup}

looked up the inc file on GitHub.

  • Thanks 1

Share this post


Link to post
21 hours ago, David Hoyle said:

This can be changed via the


FastMM4Options.inc

file if I remember correctly (sorry not a a development machine to be more precise) and possible with directives defined in the project.

The settings is 


{.$define ClearLogFileOnStartup}

looked up the inc file on GitHub.

Thank you David, this did the trick !

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×