RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataContext.AddDynArrayToClear Method

Stores a dynamic array that can be cleared when the data context is finished.

Pascal
procedure AddDynArrayToClear(P: Pointer; Info: PTypeInfo);
C++
__fastcall AddDynArrayToClear(void * P, PTypeInfo Info);

Call AddDynArrayToClear to add a dynamic array to the list of temporary dynamic arrays that TDataContext maintains. When the TDataContext instance is freed, it clears all dynamic arrays in this list of temporary arrays. 

P is a pointer to the dynamic array. 

Info is the TypeInfo pointer for the dynamic array.

Note: TDataContext does not provide access to this list. The caller must keep a reference to the dynamic arrays for use while the TDataContext instance exists.
 

 

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