System.Win.ComServ.TComServer.ObjectCount
Delphi
property ObjectCount: Integer read FObjectCount;
C++
__property int ObjectCount = {read=FObjectCount, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | System.Win.ComServ.pas System.Win.ComServ.hpp |
System.Win.ComServ | TComServer |
Description
Indicates how many objects are currently dependent upon the server being loaded.
ObjectCount indicates when the server can be unloaded. ObjectCount contains the number of objects that are currently dependent upon the server.
ObjectCount is incremented when new objects are created from class factories, and is decremented when objects are destroyed.
When ObjectCount is zero the server can be unloaded. At this time, code written for the OnLastRelease event handler can process special actions after the last object is released and before the server shuts down.