RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TOperation.AfterConstruction Method

Responds after the last constructor executes.

Pascal
procedure AfterConstruction; override;
C++
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::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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!