Board index » delphi » Creating forms at runtime / Multiple Instances of 1 form
Mike Manning
![]() Delphi Developer |
Wed, 25 May 2005 09:15:01 GMT
Creating forms at runtime / Multiple Instances of 1 form
Hi all
I am building an application (D5) which has a large number of forms, but The user may close and re-open any particular form a number of times while I have removed all the lines like In all the child forms, I've set "Action := caFree" in the FormClose event. In the button on the MDI parent which will open/re-open a form I have: if not assigned(form1) then form1 := Tform1.Create(Application); All works well the first time that each form is created at runtime. However if any of the forms which are created at runtime are closed and When I have tried to trace the error, it appears that the pointer for the Is this how Delphi is intended to work (when the formclose event action is Many thanks for any help Mike |