CA_FreeMemory
void CA_FreeMemory (void *memory);
Purpose
Frees memory allocated through the following sources:
- C string output parameters of functions in an ActiveX Controller Instrument Driver
- C strings allocated with CA_VariantGetCString, CA_BSTRGetCString, and CA_VariantConvertToType.
- Arrays allocated with CA_SafeArrayTo1DArray, CA_SafeArrayTo2DArray, CA_VariantGet1DArray, and CA_VariantGet2DArray.
- C string array elements of arrays allocated with CA_SafeArrayTo1DArray, CA_SafeArrayTo2DArray, CA_SafeArrayTo1DArrayBuf, CA_SafeArrayTo2DArrayBuf, CA_VariantGet1DArray, CA_VariantGet2DArray, CA_VariantGet1DArrayBuf, and CA_VariantGet2DArrayBuf.
- Memory allocated with CA_AllocMemory.
Parameters
Input | ||
Name | Type | Description |
memory | void * | Address of the memory to free. If you pass NULL, the function performs no action. |
Return Value
None.
Additional Information
Library: ActiveX Library
Include file: cviauto.h
LabWindows/CVI compatibility: LabWindows/CVI 5.0 and later