RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSoapDataModule.AfterConstruction Method

Generates an OnCreate event.

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

AfterConstruction is called after the SOAP data module's constructor has finished. Do not call it explicitly in applications.  

AfterConstruction generates an OnCreate event when OldCreateOrder is false. Then, after the OnCreate event handler exits, it decrements the reference count, which is artificially incremented when the data module is first allocated to prevent the data module from accidentally freeing itself from within the constructor because of a zero reference count. 

 

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