12

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?

lkessler
  • 19,819
  • 36
  • 132
  • 203
Chau Chee Yang
  • 18,422
  • 16
  • 68
  • 132
  • Add `{$SetPEFlags $20}` or set the `LARGE_ADDRESS_AWARE` flag for 4GB memory access instead of the default 2GB. See [FastMM faq](http://fastmm.svn.sourceforge.net/viewvc/fastmm/FastMM4_FAQ.txt?revision=38&view=markup). – NGLN Sep 12 '11 at 22:41

2 Answers2

18

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.

vcldeveloper
  • 7,399
  • 2
  • 33
  • 39
  • 2
    XE2 32bit just came up, not in zip downloads, but in the SVN at http://sourceforge.net/projects/fastmm/, like 7 hours after your answer :-) – Eric Grange Sep 10 '11 at 20:39
  • 2
    Pierre just scheduled the work for the weekend and it is not related to that questions here. I've blogged early this week about this. 64-bit FullDebugMode is different and there isn't yet an ETA. – Uwe Schuster Sep 11 '11 at 00:38
6

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

David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490