Hi there,<br><br>If my class constructor looks like this:<br><br>constructor TMyClass.Create(fn: string);<br>begin<br> sl := TStringList.Create;<br> try<br> fs := TFileStream.Create(fn, fmOpenRead);<br> except<br> self.Destroy;<br>
end;<br>end;<br><br>I create the objec like: MyInstance := TMyClass.Create('AnNonExistentFile'); An exception occured, I can ensure that:<br><ol><li>there is no memory leak.</li><li>the MyInstance variable is assigned <b>nil</b>?<br>
</li></ol>Thanks<br>