[Overview][Constants][Types][Classes][Index] | Reference for unit 'syncobjs' (#fcl)

# THandleObject

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Class encapsulating an operating system handle

## Declaration

Source position: syncobjs.pp line 55

`type THandleObject = class(TSynchroObject)`
`public`
`destructor destroy; override;` |  | Free the instance
`property Handle: TEventHandle; [r]` |  | Handle for this object
`property LastError: Integer; [r]` |  | Last operating system error
`end;`

## Inheritance

`THandleObject` |  | Class encapsulating an operating system handle
`TSynchroObject` |  | Abstract synchronization object
`TObject`

## Description

THandleObject is an abstract parent class for synchronization classes that need to store an operating system handle. It introduces a property Handle which can be used to store the operating system handle. The handle is in no way manipulated by THandleObject, only storage is provided.

Do not create an instance of THandleObject. It is an abstract class. Recent versions of FPC actually declare the class as abstract.

## See also

Handle |  | Handle for this object

Documentation generated on: May 14 2021