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
1
vote
2 answers

FastMM, stack trace memory for leaks in dynamicly loaded DLL, compiled with runtime packages

I'm using FastMM together with JCL Debug info to trace memory leaks in my application. However I have plugins which are dlls compiled in Delphi, both dlls and main application use common runtime packages. Now, when I'm shutting down the application,…
migajek
  • 8,524
  • 15
  • 77
  • 116
1
vote
1 answer

How to correctly free/finalize an ActiveX DLL in Delphi?

We are using a class called ODNCServer here - at initialization, an TAutoObjectFactory object is created: initialization pAutoObjectFactory := TAutoObjectFactory.Create(ComServer, TODNCServer, Class_ODNCServer, ciSingleInstance, tmApartment); Now…
schnaader
  • 49,103
  • 10
  • 104
  • 136
1
vote
1 answer

FastMM svn version

I downloaded FastMM through an svn checkout. (instead of stable packaged version) Can I use it (or is it safe to use) in my release builds? I'm asking this as a seperate question as Rob Kennedy suggested.
Pascalm
1
vote
5 answers

How list all instantiated objects?

How can I list all instantiated objects in all application, using FASTMM4 or default memory manager?
Gedean Dias
  • 1,063
  • 1
  • 10
  • 24
0
votes
0 answers

Fastmm with New and Dispose Delphi 6

I have some Delphi 6 code that allocates memory using New and frees it using Dispose. I have stepped through the code and see that both New and Dispose actually do get called. I am wondering why FastMM is reporting a memory leak, even though…
sse
  • 987
  • 1
  • 11
  • 30
0
votes
0 answers

Delphi 10.2 using FastMM4 leaking memory

I have a testproject which leads to an memory leak (according to FastMM4) and I don't really understand why. The setup consists of one DLL Project and a VCL application. The VCL project: GUI_AV.dpr program GUI_AV; uses FastMM4 in 'FastMM4.pas', …
White
  • 157
  • 9
0
votes
1 answer

FastMM reports 'Another third party memory manager has been installed' in BCB 6.0 & TeeChart 7.07

I've recently joined a new company with a suite of legacy apps written in C++ Builder 6 and am investigating some memory issues. To do this I'm using the latest Fast MM from GitHub and got it working ok with a simple BCB project. In the actual…
AndyB
  • 162
  • 8
0
votes
0 answers

FastMM_FullDebugMode library source code (dpk)

I am using RAD Studio 10.2.3. I am trying to use FastMM4 to find memory leaks in my C++Builder 64-bit application. So I downloaded FastMM4. I have the latest version 4.993. The problem is that some part of the code are a little bit obsolete and need…
Louis
  • 75
  • 6
0
votes
1 answer

OpenGL 3.2 in Delphi 2009 using FastMM 4.97 problem with UBOs in FullDebugMode

I'm sitting with an OpenGL 3.2 application in Delphi 2009. When using FastMM 4.97 with FullDebugMode defined the UBOs does not get their data properly. With FullDebugMode undefined everything works like a charm. Example: Setting the viewport…
DelphiDabber
  • 295
  • 2
  • 13
0
votes
0 answers

Why Delphi program's memory continue to grow when using FastMM

I am using Delphi 6 which has the old memory manager. My program reads in and processes a large dataset. All memory is freed correctly whenever I clear the dataset or exit the program. It has no memory leaks at all. 24 MB used after starting my…
0
votes
1 answer

Is there a way to disable FullDebugMode for a class or unit?

We want to enable flag FullDebugMode of FastMM4 in an internal build that we use for testing the application. But when we enable it, the app raise an exception of "out of memory" in a form that uses the TDCInfoTree component. The form is critical…
Rodrigo Caetano
  • 379
  • 1
  • 13
0
votes
0 answers

Call a virtual constructor by id on old style Delphi classes

Before I read object contents from a stream, I read an ID to determine the object type. For this I have to store streaming records (TStreamRec) to link class types to IDs. When I load an ID I have to search for the right streaming record to call the…
User007
  • 187
  • 10
0
votes
0 answers

How to get a stack trace from FastMM under C++ Builder?

I managed to install FastMM4 under C++ Builder 2010 but the log file generated is filled with memory dumps or with statements like The block is currently used for an object of class: Unknown Last statement in log is: 5 - 12 bytes: TObject x 1 …
Gabriel
  • 20,797
  • 27
  • 159
  • 293
0
votes
1 answer

Where will Delphi MM4 store the logfile for memoryleaks?

I spent a lot of time finding the file, but i cant. I only find there is such a file, refereed to as "The file", "a file", "the textfile", "the errorfile" and so on, but not the real name of the file and not where its located. Only that its in the…
Sunsales
  • 1
  • 1
0
votes
1 answer

How to properly free a Delphi form

Trying to fix memory leaks in my application using FastMM in full debug mode, some leaks are reported regarding instances of (descendants of) TForm. After checking and stepping in the code, I can say for sure that those forms are released and not…
Papaya
  • 332
  • 3
  • 15
1 2 3
8
9