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
3
votes
1 answer

What could explain the difference in memory usage reported by FastMM or GetProcessMemoryInfo?

My Delphi XE application is based on a single EXE using a local server DLL created by RemObjects and uses a lot of memory for a specific operation until it generates an exception saying there are not enough memory. So I'm trying to understand why…
jonjbar
  • 3,896
  • 1
  • 25
  • 46
3
votes
5 answers

How can I use FastMM4 memory leak reporting in a Service?

Does the same technique which FastMM4 for Delphi provides to report memory leaks to a detailed file work if the application runs as service? Of course the best practice would be to write unit tests and a simple standalone application first, and find…
mjn
  • 36,362
  • 28
  • 176
  • 378
3
votes
1 answer

Current FastMM release versus Delphi XE default

We've been experiencing problems with the way 3rd-party component thread code is being handled in Delphi XE. I say 3rd-party because our core application does not implement any multi-thread code on its own. What i've determined is that strange…
Dan Hacker
  • 73
  • 2
  • 8
3
votes
1 answer

Should I still use FastMM in Delphi Alexandria?

I've been using FastMM for very long time always placing 'FastMM4' in all Delphi projects. Does it make sense with the latest Delphi versions?
Molochnik
  • 704
  • 5
  • 23
3
votes
2 answers

How to use FastMM in delphi expert(dll)

I made delphi expert(dll - delphi 5). I want to test my expert for memory leak.How to use FastMM for dll expert? Is it possible to use fastmm(for my dll) instead of the standard memory manager?
FetFrumos
  • 5,388
  • 8
  • 60
  • 98
3
votes
5 answers

Delphi automatic garbage collector

Is it possible to think to have in future an automatic garbage collector in Delphi? There are many applications in which a higly detailed control on when to free an object is not so important and it is just an extra thing to care about. For such…
UnDiUdin
  • 14,924
  • 39
  • 151
  • 249
3
votes
4 answers

Delphi DLL that is compatible with other programming languages

I want to build a DLL that exports functions that return a string. This DLL should work with other programming languages!! I have found all kind of nasty solutions/hacks to this, best one is to make my function return Pchar then call another…
Gabriel
  • 20,797
  • 27
  • 159
  • 293
3
votes
2 answers

Apache memory leak

I am using Apache 2.2 on Windows and I can see steady increase in memory for httpd process. I used FastMM memory manager to find memory leaks and while I found some and cleared them and while FastMM is not finding anything anymore, my httpd memory…
pixel
  • 9,653
  • 16
  • 82
  • 149
3
votes
6 answers

FastMM and Dynamically loaded DLLs

I have a host application, that loads a dozen of libraries at start up. I want to switch from Delphi 7s default memory manager to the full version of FastMM4 for better mem leak reporting. Should I include FastMM4 in the uses section of both the…
Vegar
  • 12,828
  • 16
  • 85
  • 151
3
votes
1 answer

What is the source of this memory leak (when using TCollection)

I have some code which i did not write, but there is a memory leak. The real strangeness is the memory only leaks if i zero a structure before returning it. Reproducible minimum code The leak is reproducible in Delphi 5 and Delphi 7. First we have a…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
3
votes
1 answer

Does calling FastMM4 LogAllocatedBlocksToFile() periodically use up memory space?

I'm hunting an elusive memory problem in a Delphi 5 program, where memory gets randomly overwritten at the customer site. After trying a lot of things with no result so far I now want to use the FastMM4 output from the LogAllocatedBlocksToFile() to…
mghie
  • 32,028
  • 6
  • 87
  • 129
3
votes
2 answers

Detect memory leaks with FastMM and the exitcode

I have an idea to enable FastMMs memleakreporting in the nightly automatic build. The messagebox should of course be disabled. The simplest would probably be if the applications exitcode was > 0 if there was a memleak. I did a quick test and the…
Roland Bengtsson
  • 5,058
  • 9
  • 58
  • 99
3
votes
1 answer

How to add FastMM to a C++ Builder project?

I'm trying to configure FASTMM4 for Builder C++ 6 and the steps I followed are; Downloaded zip from sourceforge. Under the Project -> Options -> Linker menu I unchecked "Use Dynamic RTL". Unzipped the contents at C:/tools/FASTMM and added…
nommyravian
  • 1,316
  • 2
  • 12
  • 30
3
votes
1 answer

How is this a memory leak?

FastMM reports this line as the source of a memory leak : StrClassName := MidStr (curLine, length(START_OF_CLASSNAME)+1, length(curline)+1) What's up with Copy and MidStr? Is this only a Delphi 2007 compiler bug, or do the later versions also have…
programstinator
  • 1,354
  • 3
  • 12
  • 31
3
votes
0 answers

Using FASTMM4 to generate a report without writing to a file

I am trying to hunt down memory leaks in the GUI which is written in Delphi (not a simple task, seeing as the code is enormous- tens of thousands of lines of code). I've made a file parser which analyzes the report generated by FASTMM, and creates…
programstinator
  • 1,354
  • 3
  • 12
  • 31
1 2 3
8 9