Zitat von Graeme Geldenhuys <graemeg.lists@gmail.com>:

> Hi,
>
> When a new form is created using Application.CreateForm(), the form's
> global instance variable is passed in as well. Now if that form's
> CloseAction = caFree, where is that instance variable assigned nil
> after it was freed?
>
> In fpGUI, the form is freed, but the global instance variable is still
> pointing to a now non-existing form. I need that instance variable to
> be nil.
>
> Any help you guys can offer?

The variable pointer is not stored, so can not be set to nil by the LCL. Afaik
it is the same with the VCL.

Why not set it to nil in TForm.Destroy?

Mattias


