[EMAIL PROTECTED] wrote: > I managed to close the application properly with this code: > > procedure TMainForm.FormClose(Sender: TObject; var Action: TCloseAction); > VAR i: Integer; > begin > for i:= 0 to MDIChildCount-1 > DO MDIChildren[0].Close; { Remove all open MDI child windows } > end; > > But I still want to know how it should be done 'by the book' and why it > crashes in 'FormResize'.
If you want destruction of one component to cause the destruction of other components, then that one component should be the owner of the others. -- Rob __________________________________________________ Delphi-Talk mailing list -> Delphi-Talk@elists.org http://www.elists.org/mailman/listinfo/delphi-talk