[fpc-pascal] Specifying a Interface type via $Interfaces
Graeme Geldenhuys
graemeg.lists at gmail.com
Thu Oct 11 22:55:20 CEST 2007
On 11/10/2007, Dean Zobec <dean.zobec at gmail.com> wrote:
> > interface types. Could somebody please explain the difference. And
> > why would I use one over the other?
> Corba interfaces are not reference counted as they don't descend from IUnknown
So other than that, COM interfaces and CORBA interfaces share the same features?
As for reference counting - that just means that as soon as the
reference count for an Interfaces reaches zero, it gets automatically
freed? CORBA then rather treats them like classes - you can have no
other objects referencing the class, yet it stays in memory. You
always need to free it off manually.
> point of view see this chapter of Delphi in a Nutshell by By Ray
> Lischner:
> http://www.oreilly.com/catalog/delphi/chapter/ch02.html
Thanks for the link and quote. It already makes more sense. Hopefully
more reading about the topic will strengthen the knowledge when to use
Interfaces and when to use Class Inheritance.
> I'll try to find some old links about articles I've read years ago.
That will be very much appreciated. Thanks.
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
More information about the fpc-pascal
mailing list