Questions tagged [fastmm]

FastMM is the default memory manager for Delphi Win32 and Win64 bit applications. Scales well in multi-threaded applications, not prone to memory fragmentation, and supports shared memory without the use of external .DLL files. For debugging, tools for tracking memory leaks and memory corruption are part of the FastMM manager.

FastMM is the default memory manager for Delphi Win32 and Win64 bit applications.

Written by Pierre le Riche and published under MPL 1.1 or GNU LGPL 2.1 license.

Scales well in multi-threaded applications, not prone to memory fragmentation, and supports shared memory without the use of external .DLL files. For debugging, tools for tracking memory leaks and memory corruption are part of the FastMM manager.

Resource

FastMM on SourceForge

135 questions
5
votes
4 answers

How to convince the memory manager to release unused memory

In a recent post ( My program never releases the memory back. Why? ) I show that when using FastMM, the application does not release substantial amounts of memory back to the system. Recently I created an artificial test program to make sure the…
Gabriel
  • 20,797
  • 27
  • 159
  • 293
4
votes
2 answers

How do I turn on/off FastMM memory leak reporting under Delphi XE?

How do I turn on/off FastMM memory leak reporting under Delphi XE? Under Delphi 7, I had to modify the inc file. But I hear that Delphi XE has FastMM already integrated. How do I access FastMM settings? I got this from Delphi Help: Full source code…
Gabriel
  • 20,797
  • 27
  • 159
  • 293
4
votes
4 answers

Delphi 7.0 and memory leak?

After spending time with FastMM4 in weeding out any pieces of code that could possibly cause memory leak as indicated by FastMM4, we have been test running our software for about a month non-stop on Windows 7. This is what I am seeing so far in the…
ThN
  • 3,235
  • 3
  • 57
  • 115
4
votes
1 answer

Is this FastMM4 Invalid Pointer Exception a bug in FastMM for Delphi 5?

In Delphi 5, with FastMM active, the call to FreeMem in the following minimum-reproducible code triggers an Invalid Pointer Exception: program Project1; {$APPTYPE CONSOLE} uses FastMM4, SysUtils, Windows; procedure Main; var token:…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
4
votes
3 answers

Delphi: FastMM virtual memory management reference?

I had an issue recently (see my last question) that led me to take a closer look at the memory management in my Delphi application. After my first exploration, I have two questions. I've started playing with the FastMMUsageTracker, and noticed the…
Bourgui
  • 263
  • 3
  • 14
4
votes
2 answers

FastMM4, Delphi6, Leak of TApplication?

I checked the FastMM4 with D6. When I debug a simple application with uses "Forms", I everytime got 3 lines for memory leak. This application has leaked memory. The small block leaks are (excluding expected leaks registered by pointer): 13 -…
durumdara
  • 3,411
  • 4
  • 43
  • 71
4
votes
6 answers

Does FastMM detect all memory leaks

Somebody suggested recently ( My program never releases the memory back. Why? ) that my program leaks some memory. I have FastMM set to aggressive and it reports no memory leaks when I shutdown the program. Anyway, I would like to know if there can…
Gabriel
  • 20,797
  • 27
  • 159
  • 293
4
votes
2 answers

FreeMM vs ShareMem

We have a lot of dll-libraries written in both delphi and c++ builder, and use sharemem and borlndmm.dll. An aligment-issue in a 3thparty library forces us over to the new memorymanager in delphi 2007. Can someone please explain 'shared memory…
Vegar
  • 12,828
  • 16
  • 85
  • 151
4
votes
0 answers

FastMM and implicit dll delayed

I use delphi XE2 with FastMM4. When I want to create a DLL with the keyword "Delayed", I've a violation when I leave the application. If I test without "Delayed" the can leave application without violation Main code : type function Add(X, Y :…
Joc02
  • 345
  • 8
  • 18
4
votes
1 answer

How to RegisterExpectedMemoryLeak?

Let's start with this simple Delphi 2010 snippet: var StringList: TStringList; begin ReportMemoryLeaksOnShutdown := True; StringList := TStringList.Create; StringList.LoadFromFile('c:\fateh.txt'); …
S.FATEH
  • 451
  • 8
  • 16
4
votes
1 answer

Generating a FASTMM report WITHOUT the shutdown dialog

I would like my Delphi project to generate the a FASTMM memory leak report during the program runtime, if possible, and append to that report on shutdown, without having to see this dialog every time I close the program. If it is not possible to…
programstinator
  • 1,354
  • 3
  • 12
  • 31
4
votes
3 answers

delphi - terminate all the threads (TThread) on closing application

My application is a tcp/ip server, with main thread created only once & listening all the time. When new client connects, the main thread creates the new thread of TClientThread type. There is however no list of running Client threads, as that would…
migajek
  • 8,524
  • 15
  • 77
  • 116
4
votes
2 answers

Delphi - structures' strings not being freed [FastMM manager]

If I declare PSomeStruct = ^TSomeStruct; TSomeStruct = record s1 : string; end; and I run the following code: var p: PSomeStruct; begin new(p); p^.s1:= 'something bla bla bla'; dispose(p); the FastMM 4 memory manager reports that…
migajek
  • 8,524
  • 15
  • 77
  • 116
4
votes
2 answers

FastMM4, how to read the log file?

i'am working on an software,so i have just started using FastMM4 (for real) in my project. i have found on the net on about how to get the line number in FastMM4,i got the line number but i can figure out what does the other information in the log…
PresleyDias
  • 3,657
  • 6
  • 36
  • 62
3
votes
1 answer

Should I ship the FastMM include file in my Delphi 6 application installation files?

I use FastMM4 in my Delphi 6 applications. Do I need to ship the include file (FastMM4Options.inc) with the installation files I create to install my app on a users PC? If so, should I put it in the same directory that I place the main EXE file? …
Robert Oschler
  • 14,153
  • 18
  • 94
  • 227
1 2
3
8 9