Interface deletion when member of class lazarus / 21-General ---------------------------------------------------------------------- Kurt · 2023-10-09 21:23 How are interfaces handled when they are members of dynamically created classes?  Do the interfaces automatically get destroyed when the class object is destroyed? ---------------------------------------------------------------------- ASerge · 2023-10-09 21:59 Quote from: Kurt on October 09, 2023, 11:23:08 pmDo the interfaces automatically get destroyed when the class object is destroyed? If there are no other references, then yes, when the instance is destroyed, the reference count is reduced to zero and the destructor is called for the interface object. ---------------------------------------------------------------------- cdbc · 2023-10-10 04:13 Hi What ASerge said and if ref-counting gets you into trouble, there's always {$interfaces CORBA} to play with, where there are no ref's being counted  Regards Benny