Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

AZSetHandleSize/DSSetHandleSize (CIN Function)

MgErr AZSetHandleSize(h, size);

MgErr DSSetHandleSize(h, size);

Purpose

Changes the size of the block of memory referenced by the specified handle.

While LabVIEW arrays are stored in DS handles, do not use this function to resize array handles. Many platforms have memory alignment requirements that make it difficult to determine the correct size for the resulting array. Instead, use either NumericArrayResize or SetCINArraySize. Do not use these functions on a locked handle.

Parameters

Name Type Description
h UHandle Handle you want to resize.
size int32 New size, in bytes, of the handle.

Return Value

MgErr, which can contain the following errors:

Value Description
noErrNo error.
mFullErrNot enough memory to perform the operation.
mZoneErrHandle or pointer not in specified zone.

Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit