Cita:
Empezado por Delphitest
Por lo entiendo al llamar al formulario lo estoy creando, pero luego solo usaba close para cerrarlo sin destruirlo ni liberar memoria.
|
Correcto.
Si revisas la ayuda del evento OnClose de la clase TForm (TCustomForm) pone lo siguiente:
------------------------------------------------------------------------
If a form is an MDI child form,... then the default Action is caMinimize ... or the default Action is caNone ...
If a form is an SDI child form, Action defaults to caHide.
To close the form and free it in an OnClose event, set Action to caFree.
------------------------------------------------------------------------
Vamos, que segun el tipo de formulario (y algunas propiedades) se hace una u otra cosa por defecto, pero en ningun caso se destruye. Si quieres asegurarte de que se destrute, debes llamar al: