RAD Studio VCL Reference
TInterfacedObject::AfterConstruction Method

Responds after the last constructor executes.

procedure AfterConstruction; virtual; override;
virtual __fastcall AfterConstruction();

System::TInterfacedObject::AfterConstruction is called automatically after the object's last constructor has executed. Do not call it explicitly in your applications. 

When an instance of System::TInterfacedObject is allocated, System::TInterfacedObject::RefCount is incremented to prevent its destruction while processing the constructor. System::TInterfacedObject::AfterConstruction decrements that System::TInterfacedObject::RefCount to re-establish the correct reference count after all constructors have executed. 


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