Try the
unit "FastMM" instead. If you really use Delphi 2010 it should already be part of the provided units.
It's a solution without another
DLL, but you need to use that memory manager in the
DLL and the EXE. If you need to interface with another programming language like C you can not use that way, but you must manage the PChars yourself.
Question: Why did you choose "Free Pascal" as language?
Regards,
Sven