System.Classes.TStreamAdapter.Destroy

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

destructor Destroy; override;

C++

__fastcall virtual ~TStreamAdapter(void);

Properties

Type Visibility Source Unit Parent
destructor public
System.Classes.pas
System.Classes.hpp
System.Classes TStreamAdapter

Description

Frees the instance of TStreamAdapter.

Most applications do not need to explicitly free the TStreamAdapter instance. Instead, it is freed automatically when its reference count drops to 0.

If you must explicitly destroy a TStreamAdapter instance, use the Free method instead of Destoy. Free checks that the TStreamAdapter reference is not nil before calling Destroy.

Destroy frees the associated stream object (Stream property) if its StreamOwnership property is True.

See Also