System.Win.ComServ.TComServer.Destroy

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

destructor Destroy; override;

C++

__fastcall virtual ~TComServer(void);

Properties

Type Visibility Source Unit Parent
destructor public
System.Win.ComServ.pas
System.Win.ComServ.hpp
System.Win.ComServ TComServer

Description

Destroys an instance of a COM server object.

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.

See Also