I defined a DataAbstract Hydra Plugin with Code first. If I change the class factory with the ROPooledClassFactory attribute when I close the app server it raise many memory leak.
With the class factort ROStandardClass all work fine.
It appears that the instances in the pool are not being released correctly
This mix of custom packages (which I personally do not see complicated) help me to have more control over them in production. If I worked with standard packages, in addition to having the delphi version, I would find myself having to manage many files with relationships that are difficult to manage.
I divided the packages logically between RTL / VCL, RO and UniDAC in order to have the related components in each package but above all I can manage the versioning. Even updating Delphi simply by recompiling my packages (and making the relative adjustments) I am not forced to delete the old packages to replace them with the new ones but I simply replace them
However apart from this, your example is based on an executable without the use of run-time packages
I see to create a more “standard” example and see if the problem is raised anyway