What Are The Mistakes We Made In Creating Delphi Objects?
November 16, 2021
Practically every developer, even a newcomer in programming, can create and destroy objects correctly. A classic construction that is used in the majority of programs looks the following way:
MyObject:= TMyClass.Create();
try
{some code…}
finally
MyObject.Free;
end;
Yet, some time ago, there were a lot of discussions where to place object creation: before an exception handler or within…