Delphi memory management design strategies : Object or Interface ?

Posted by Pierre-Jean Coudert on Stack Overflow See other posts from Stack Overflow or by Pierre-Jean Coudert
Published on 2010-03-31T07:28:51Z Indexed on 2010/03/31 7:33 UTC
Read the original article Hit count: 327

Regarding Delphi memory management, what are your design strategies ?

  • What are the use cases where you prefer to create and release Objects manually ?
  • What are the uses cases where Interfaces, InterfacedObjects, and their reference counting mechanism will be prefered ?

Do you have identified some traps or difficulties with reference counted objects ?

Thanks for sharing your experience here.

© Stack Overflow or respective owner

Related posts about delphi

Related posts about interface