I am creating a new project with DA for Delphi (10.4 and last release of RO/DA/HY) and I have created a whole series of packages to be able to use Hydra. I use custom packages and not standard packages
By compiling and running the application with FastMM5 the following memory leak is raised:
The application currently has no defined services but only the ServerDatamodule with the DB access settings
This is a regression in the latest build, compared to 1481?
Unfortunately Eugene is off on well-deserved vacation this week, i’m afraid this will have to wait til next week for him to have a look at. I’ll log an issue.
It’s not a Hydra problem. The memory leak occurs only if you compile the project with the runtime package. If I compile without runtime package no memory leak occurs.
The problem is in the ConnectionManager class and specifically in connection poll management. Here a TROThreadTimer is used which for some reason with the run-time packages is not released correctly when you close the app
many thank for your answer. Ok I understand the problem.
I have however seen that it is a “limited” problem as it refers to a global object (ConnectionManager) and from some tests that I have carried out it is not a problem that grows over time
which is exactly what I will do. I will define a shared interface where I will share objects with plugins including the ConnectionManager.
Consider that the memory leak today comes out even if I don’t load any plugins but only for the fact that I have enabled the compilation with the runtime packages, so I doubt that the problem will be solved