Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

New Hint: Unused object created.

 Post Reply Post Reply
Author
Nicholas Ring View Drop Down
New Member
New Member
Avatar

Joined: 09 Sep 2016
Posts: 7
Post Options Post Options   Quote Nicholas Ring Quote  Post ReplyReply Direct Link To This Post Topic: New Hint: Unused object created.
    Posted: 18 Oct 2016 at 12:47am
If there is code something like this:

LMyObject := TMyObject.Create;
try
  // ....
finally
  LMyObject.Free;
end;

Where the object is created but never used, except in the "finally", where it is freed.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down