Class TNonRefCountedInterfacedObject

Unit

Declaration

type TNonRefCountedInterfacedObject = class(TObject, IInterface)

Description

A class that can use interfaces and is not reference counted.

For COM-style interfaces, it's needed to descend from this to provide dumb _AddRef and _Release implementations (that do nothing) and trivial QueryInterface implementation.

See e.g. thread [http://lists.freepascal.org/lists/fpc-devel/2007-November/012060.html].

Hierarchy

  • TObject
  • TNonRefCountedInterfacedObject

Overview

Methods

Protected function _AddRef: Integer; cdecl;
Protected function _Release: Integer; cdecl;
Protected function QueryInterface( constref IID: TGUID; out Obj): Hresult; virtual; cdecl;

Description

Methods

Protected function _AddRef: Integer; cdecl;
 
Protected function _Release: Integer; cdecl;
 
Protected function QueryInterface( constref IID: TGUID; out Obj): Hresult; virtual; cdecl;
 

Generated by PasDoc 0.15.0.