We have a simple code-first server in Delphi that has a function to return a string constant. A simple test call to this function works fine. The problem is that if we then close the service application, FastMM will often report a memory leak. Typically this is a TRORTTICacheServiceMethod, a unicode string, and a string list. Sometimes multiples of these. Sometimes a TRORTTICacheService too. And sometimes nothing leaks - it is not consistent.I presume that is because these items are being automatically tidied before we close.
Is there a way we can ensure that these items are tidied before the system closes? It would make for a better development experience if we know that leaks are real leaks, and not just a cache that isn’t emptied. Having been a RODL editor person for many years, I’m not too familiar with the inner workings of this part of the system.