CNSFreeMemory
- Updated2023-02-21
- 1 minute(s) read
int CNSFreeMemory (void *ptr);
Purpose
Frees memory allocated by the Network Streams Library. You must free allocated memory in the following situations:
- When you read string values using CNSReadScalar
- When you read multiple string elements using CNSReadMultipleScalar
- When you call CNSReadArray
- When you call CNSDataGetScalarValue for string values
Parameters
Input | ||
Name | Type | Description |
ptr | void * | The pointer to free. This memory must have been allocated by the Network Streams Library. |
Return Value
Name | Type | Description |
error | int | An error code returned by a Network Streams Library function. |
Additional Information
Library: Network Streams Library
Include file: cvinetstreams.h
LabWindows/CVI compatibility: LabWindows/CVI 2013 and later