when I close the main window from the "X" the application is closed, but in reality the exe remains in memory on the computer causing memory leaks.
I can't find the error.
In reality the problem occurs when the Tcalex () class is called: everything is working but if the final user closes the main window the exe remains in memory which is not the case for the other procedures.
the problem does not always manifest itself
there are also moments when if the user closes the window from the "X" it also closes the exe in memory
if tcalex is open in the "Month" view, the exe closes, if instead tcalex is open in the "Daily" or week view
then the exe does not close even if the user returns to the Month view
By chance is there a function or a procedure that goes to check if the exe is still in memory and if it closes it?
I made some checks and I saw there is something no closed on TMonthView or TweekView while on tdayview is ok