RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TRIO.AfterConstruction Method

Updates the reference count after the last constructor has executed.

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

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

TRIO overrides the AfterConstruction method to update the RefCount property. TRIO artificially increments the reference count when it is first created to prevent changes to the reference count from causing the TRIO instance to be freed before it is fully instantiated. AfterConstruction returns the reference count back to an appropriate level, now that the constructor is finished. 

 

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