Soap.Rio.TRIO.BeforeDestruction

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure BeforeDestruction; override;

C++

virtual void __fastcall BeforeDestruction();

Properties

Type Visibility Source Unit Parent
procedure
function
public
Soap.Rio.pas
Soap.Rio.hpp
Soap.Rio TRIO

Description

Prevents the destruction of a TRIO instance if the reference count is greater than zero.

BeforeDestruction is called automatically before the TRIO object's first destructor executes. Do not call it explicitly in your applications.

TRIO overrides the BeforeDestruction method to check the RefCount property. If RefCount is greater than zero, then there is still an outstanding reference to the TRIO object's interface,. and BeforeDestruction raises an exception to prevent the destruction of this object.

See Also