To conserve resources, I am setting up dynamic creation of forms that may not be used while my application runs. I am not sure what the best Owner is for a dynamically created form. With a nil Owner, there isn't the Notification method performance hit, but I think you have to use Free (or FreeAndNil) to get rid of it. I'd prefer to use the Release method to destroy the form object so that event handling on the dynamically created form is completed before the form is destroyed, but I understand that to use that I'd need to specify an Owner.
with TMyForm.Create(Self) do //Self = the calling form
with TMyForm.Create(nil) do
Free; //or FreeAndNil(MyFormVar)
Sorry for this elementary question; I'm relatively new to Delphi. Any opinions on this subject would be greatly appreciated. Thanks~