[Lazarus] FormClose

Santiago A. svaa at ciberpiula.net
Tue Sep 8 21:00:24 CEST 2020


Hi:

I recently have read a message where an object was created in the 
FormCreate and was freed in the formClose.  What if the form is not 
freed? I think that the the natural place to free objects created in 
formCreate is FormDestroy.
In fact, I usually follow this pairs
Created in FormCreate, freed in FormDestroy
Created in FormActivate, freed in FormDeactivate
Created in FormShow, freed in FormHide

I seldom use formClose, just to change the default closeAction.  I can't 
see what else is formClose for. Do you use it form any other case?

-- 
Saludos

Santiago A.



More information about the lazarus mailing list