I found the instructions in FastMM4BCB file itself and I got it working.
Usage:
- Copy FastMM4BCB.cpp, FastMM4.pas, FastMM4Message.pas, FastMM4Options.inc, and FastMM_FullDebugMode.lib to your source folder.
- Copy FastMM_FullDebugMode.dll to your application's .exe directory (if you intend to use FullDebugMode).
- To your project, add FastMM4Messages.pas first, then FastMM4.pas, then FastMM4BCB.cpp. On compiling the .pas files, .hpp files are created and imported by the subsequent files.
- Add USEOBJ("FastMM4BCB.cpp") to your project file, BEFORE any other USEFORM directives.
Under the Project -> Options -> Linker menu uncheck "Use Dynamic RTL" (sorry, won't work with the RTL DLL).
FastMM will now install itself on startup and replace the RTL memory manager.