System.AcquireExceptionObject

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function AcquireExceptionObject: TObject;

C++

extern DELPHI_PACKAGE TObject* __fastcall AcquireExceptionObject(void);

Properties

Type Visibility Source Unit Parent
function public
System.pas
System.hpp
System System

Description

Extracts the exception object.

AcquireExceptionObject returns a TObject to the current exception object and prevents the exception object from being deallocated when the current exception handler exits.

Note: By calling AcquireExceptionObject, the exception handling mechanism does not clean up the exception object. The caller must destroy the extracted exception object correctly.

See Also

Code Examples