Soap.SOAPHTTPTrans.THTTPReqResp.NewInstance
Delphi
class function NewInstance: TObject; override;
C++
__classmethod virtual System::TObject* __fastcall NewInstance();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Soap.SOAPHTTPTrans.pas Soap.SOAPHTTPTrans.hpp |
Soap.SOAPHTTPTrans | THTTPReqResp |
Description
Allocates memory for each instance of THTTPReqResp.
All constructors call NewInstance automatically. NewInstance calls InstanceSize to determine how much memory to allocate from the heap to contain a particular instance. Do not call NewInstance directly.
THTTPReqResp overrides NewInstance to increment the reference count when a new instance is created. This prevents any constructor from accidentally deleting the instance due to a reference count of zero. The AfterConstruction method decrements the reference count after all constructors have executed.