Cesar Romero schreef:

Is there a way to use the reference counting (used with interfaces) with
normal objects?
Currently not, unless you use TInterfacedObject.

But you have to declare as Interface



I guess TInterfacedObject implemets IUnknown, so you don't need to declare a 
interface.

type
  TMyClass = class(TInterfaceObject)
  // all your things.
  end;

var
  MyObject : TMyClass;

MyObject will be reference counted.

Vincent

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to