I need help locating a memory leak in an endpoint resource file used in Rad Server running in Apache on Windows.
I believe FastMM is built in to Delphi 10.3 (which I am using), but I am unsure how to enable it or even how to get the output from it.
All the instructions I could find say to include ReportMemoryLeaksOnShutdown := true in the begin section of the DPR, but since this is just a BPL file, I'm not sure where it goes. Also, it appears that a dialog is displayed when the application is closed, but since this is running in Apache, where would the data be?
Is there some other tool I could/should use instead of FastMM?
Any help would be appreciated and if I am missing any important info in my question, please let me know. Thank you.
We use the downloaded version of FastMM . You need to add the FastMM unit as first included unit. In addition make sure that the FastMM Debug dll is in the apache folder.
You can then change the FastMM.inc file such that it refletcs your needs. We use the following settings (based on the original file but stripped from comments...) - of course you can change the settings here e.g. maybe the option "UseRuntimePackages" is needed in your case: