RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSoapDataModule.Create Constructor

Creates a SOAP data module instance.

Pascal
constructor Create(AOwner: TComponent); override;
C++
virtual __fastcall TSoapDataModule(TComponent * AOwner);

Most applications do not need to call the constructor for TSoapDataModule. Instead, add a SOAP data module to a Web service application using the SOAP data module wizard on the SOAP page of the new items dialog. 

AOwner specifies the component that is responsible for freeing the SOAP data module (typically the application). If you supply an owner, the SOAP data module acts as a component, and is freed by that owner. If you pass nil for the AOwner parameter, the SOAP data module acts like an interfaced object, and maintains a reference count for every use of its interface. When that reference count goes to zero, the SOAP data module automatically frees itself. Note that is you set AOwner to nil but never obtain a reference to this object's interface, you must explicitly free the data module. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!