Einzelnen Beitrag anzeigen

Benutzerbild von DP News-Robot
DP News-Robot

Registriert seit: 4. Jun 2010
14.968 Beiträge
 
#1

Creating multiple objects using try-finally

  Alt 6. Jul 2010, 15:50
One of the most used object-oriented patterns is probably this one: foo := TFoo.create; try //do something with foo finally foo.free; end; It basically means, that if you create an instance of some class and if there is no “owner” who takes care of the new instance’s life ...

More...
  Mit Zitat antworten Zitat