Jump to content
Registration disabled at the moment Read more... ×
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×