RAD Studio VCL Reference
TObject::InitInstance Method

Initializes a newly allocated object instance to all zeros and initializes the instance's virtual method table pointer.

class function InitInstance(Instance: Pointer): TObject;
TObject InitInstance(Pointer Instance);

There should be no reason to call System::TObject::InitInstance directly. System::TObject::InitInstance is called by System::TObject::NewInstance when an object is created. When overriding System::TObject::NewInstance, be sure to call System::TObject::InitInstance as the last statement. 

System::TObject::InitInstance is not virtual, so you cannot override it: Instead, initialize any data for an object in the constructor. 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!