zinpub 0 Posted September 13, 2022 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
Fr0sT.Brutal 899 Posted September 19, 2022 Dumb question - do you actually have leaks? 1 Share this post Link to post
zinpub 0 Posted September 19, 2022 Yes procedure TForm4.btnClick(Sender: TObject); begin TStringList.Create; end; FastMM4 catches them. Share this post Link to post