Ver Mensaje Individual
  #4  
Antiguo 16-06-2010
Avatar de Neftali [Germán.Estévez]
Neftali [Germán.Estévez] Neftali [Germán.Estévez] is offline
[becario]
 
Registrado: jul 2004
Ubicación: Barcelona - Espańa
Posts: 18.288
Reputación: 10
Neftali [Germán.Estévez] Es un diamante en brutoNeftali [Germán.Estévez] Es un diamante en brutoNeftali [Germán.Estévez] Es un diamante en bruto
Cita:
Empezado por Delphitest Ver Mensaje
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:

Código Delphi [-]
Action := caFree
__________________
Germán Estévez => Web/Blog
Guía de estilo, Guía alternativa
Utiliza TAG's en tus mensajes.
Contactar con el Clubdelphi

P.D: Más tiempo dedicado a la pregunta=Mejores respuestas.
Responder Con Cita