12
votes

I use FastMM in my Delphi application to trace memory leaking especially in FullDebugMode. With the new release of Delphi XE2, can we use FastMM as the memory manager? Can FastMM work with the Win64 platform?

2
Add {$SetPEFlags $20} or set the LARGE_ADDRESS_AWARE flag for 4GB memory access instead of the default 2GB. See FastMM faq.NGLN

2 Answers

18
votes

FastMM is pre-installed in Delphi XE2 and is the default memory manager for both Win32 and Win64 platforms, but the pre-installed version does not include all the features the open-source FastMM (available on SourceForge) provides. To use all of its features (including FullDebugMode), you have to download and install the open source project from SourceForge.

The project on SourceForge is not updated for XE2 yet; that means, for using FullDebugMode you have to wait a few more days until the open source project is updated for XE2 too.

6
votes

Pierre Le Riche committed changes to the SVN repository yesterday to add support for both 32 and 64 bit targets of XE2.