RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TLayoutWebContent._Release Method

Responds when the caller releases a reference to this object's interface.

Pascal
function _Release: Integer; stdcall;
C++
__fastcall __stdcall int _Release();

In Delphi, when an application releases an interface that is implemented by TLayoutWebContent or one of its descendants, it automatically calls __Release. Typically, interfaced objects use the __Release method to decrement a reference count. When the reference count drops to zero, the object is automatically freed. 

TLayoutWebContent implements its own version of the interface methods _AddRef and __Release that avoid this typical behavior. This prevents the object from being freed when its reference count drops to zero. In TLayoutWebContent, __Release always returns –1. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!