RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TInvokableClass.AfterConstruction Method

Responds after the last constructor executes.

Pascal
procedure AfterConstruction; override;
C++
virtual __fastcall AfterConstruction();

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

When an instance of TInvokableClass is allocated, RefCount is incremented to prevent its destruction while processing the constructor. AfterConstruction decrements that 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!