Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
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?