RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TComServer.Destroy Destructor

Destroys an instance of a COM server object.

Pascal
destructor Destroy; override;
C++
virtual __fastcall ~TComServer();

It is not necessary to directly call Free (or Destroy) to destroy a COM server object. The global ComServ variable, declared in the ComServ unit, is automatically created and destroyed in the initialization and finalization sections. 

Destroy destroys the COM server object and calls the ComClassManager to free, from the list it maintains, each of the class factories that the server owns. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!