RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TInvContext.AllocServerData Method

Allocates memory for the parameters and result values of a specified method and sets up the parameter and result pointers.

Pascal
procedure AllocServerData(const MD: TIntfMethEntry);
C++
__fastcall AllocServerData(const TIntfMethEntry MD);

AllocServerData suballocates the memory that the SetMethodInfo method allocates so that it can represent the parameters and return value of a method. It looks up the types of each parameter and of the return type for the method, allocates memory for their values using the AllocData method, and stores the pointers to that memory by calling the SetParamPointer and SetResultPointer methods. 

MD is a description of the method, including its type, calling convention, and parameter signature.

Note: AllocServerData must come after a call to SetMethodInfo so that the pool of memory is available. After calling AllocServerData, an application can call GetParamPointer and GetResultPointer to obtain pointers to the memory allocated for each parameter and for the return value of the method.
 

 

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