Internet Direct (Indy) Version 9.0.2 Beta
TIdThread.Data
Storage slot for data used by a thread.

property Data: TObject;
Description
Data is a TObject property, and can contain a reference to any TObject descendant. Data can be used to store an object reference that will be required by the TIdThread descendant in either Run, BeforeRun, or AfterRun methods.

Note: It is the responsibility of the TIdThread descendant to cast Data to the class instance required by the TIdThread descendant, or an exception will be raised.

Data is not initialized in the Create constructor, but is released in the Destroy destructor.