CA_AllocMemory
void *CA_AllocMemory (size_t memBlockSize);
Purpose
Allocates space for an object of specified size. The space allocated has indeterminate value.
Use this function to allocate memory in the following situations.
- Pointers passed to ActiveX Controller Instrument Driver functions for in/out C string parameters.
- Pointers passed back from ActiveX Controller Instrument Driver Event Callbacks for in/out or out C string parameters.
Parameters
| Input | ||
| Name | Type | Description |
| memBlockSize | size_t | Size in bytes of the space to allocate. |
Return Value
| Name | Type | Description |
| memBlockPointer | void * | A pointer to the memory block allocated. If the space cannot be allocated a null pointer is returned. |
Additional Information
Library: ActiveX Library
Include file: cviauto.h
LabWindows/CVI compatibility: LabWindows/CVI 5.0 and later