In an MDI application, I create such a child form when a button on the main MDIform is clicked:
MyForm : TForm2;
MyForm := TForm2.Create(self)
and in the OnClose event of TForm2 I write:
Self := nil
what would be the difference if i wrote "Self.Release" instead of
"Self := nil" ? If I assign the form to nil, does it still reside in memory as garbage? I mean is there any performance degradation regarding memory?