How to use FastMM4 in Delphi 6 package?

I am using FastMM4 version 4.92 in my Delphi 6 Pro application seamlessly. Now I want to use it in the package that I created (BPL). I tried putting units in the Contents section and then moving them to the top of the list, but I still get an error message from FastMM4 complaining that this is not the first item to be initialized. To fix this, I want to put FastMM4 in the Requires section, but I cannot find the DCP file for FastMM4 anywhere (runtime library). Does anyone know how to do this?

+6
memory-management delphi fastmm
source share
2 answers

Probably the reason why you got this error is that you should include FastMM4 module not in your package, but in the project in which you are testing (using) your new package (of course, in the first place in the " uses "),

+4
source share

Have you installed UseRuntimePackages in the FastMM4Options.inc file? Otherwise, you can try using ShareMem and the BorlndMM.dll replacement that comes with FastMM. Although ShareMem is intended for DLLs, its use should route all memory management procedures to BorlndMM.dll programs, allowing both standard packages and your users to use FastMM code.

+3
source share

All Articles