Jump to content
zinpub

FastMM5 LogFile Absent

Recommended Posts

Can't get log file from FastMM5...  Maybe someone can explain what I'm doing wrong?

Delphi 11

program Project4;

uses
  FastMM5,
  System.StartUpCopy,
  FMX.Forms,
  SysUtils,
  Unit4 in 'Unit4.pas' {Form4};

{$R *.res}

begin
  FastMM_LogToFileEvents := [mmetDebugBlockDoubleFree,
    mmetDebugBlockReallocOfFreedBlock, mmetDebugBlockHeaderCorruption,
    mmetDebugBlockFooterCorruption, mmetDebugBlockModifiedAfterFree,
    mmetVirtualMethodCallOnFreedObject,
    mmetAnotherThirdPartyMemoryManagerAlreadyInstalled,
    mmetCannotInstallAfterDefaultMemoryManagerHasBeenUsed,
    mmetCannotSwitchToSharedMemoryManagerWithLivePointers];

  FastMM_SetEventLogFilename('D:\log.txt');

  FastMM_EnterDebugMode;

  ReportMemoryLeaksOnShutdown := True;

  Application.Initialize;
  Application.CreateForm(TForm4, Form4);
  Application.Run;
end.

 

Share this post


Link to post

Yes

 

procedure TForm4.btnClick(Sender: TObject);
begin
  TStringList.Create;
end;

FastMM4 catches them.

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

×