How to enable / disable FastMM memory leak report in Delphi XE?

How to enable / disable FastMM memory leak report in Delphi XE? In Delphi 7, I had to modify the inc file. But I heard that Delphi XE is already integrated in FastMM. How to access FastMM settings?


I got this from Delphi help:

Full source code for the Memory Manager (FastMM) is available at SourceForge.
With the full version of FastMM, you can start the memory manager in a special "debugging" mode, which is useful for detecting heap corruption and memory leaks. Additional features in the full version of FastMM:
Double free objects / interfaces
Registration and file reports

For more information, see the comments in the FastMM source code (FastMM4.pas and FastMM4Options.inc).

So it looks like I still need to install FastMM manually. But do I need to include "FastMM4" in the USES project proposal?

+4
source share
2 answers

You do this by assigning the boolean variable System.ReportMemoryLeaksOnShutdown .

This will allow you to manage one of the most important parameters, to report a memory leak. If you want smaller-scale control of FastMM parameters, then include FastMM in your project in the same way as in Delphi 7.

+12
source

If you download the full version of FastMM from http://sourceforge.net/projects/fastmm/

You have the option to turn off a memory leak and save reports of other leaks that you do want to know about.

There is also a forum for FastMM that may come in handy for you: http://sourceforge.net/projects/fastmm/forums

If you install FastMM, then the uses clause will be automatically added to the appropriate files. You can see this if you look at the .dpr file. If you delete the sentence, FastMM will even add it back when recompiling :-).

+1
source

All Articles