MgErr AZSetHandleSize(h, size);
MgErr DSSetHandleSize(h, size);
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.
| Name | Type | Description |
|---|---|---|
| h | UHandle | Handle you want to resize. |
| size | int32 | New size, in bytes, of the handle. |
MgErr, which can contain the following errors:
| Value | Description |
|---|---|
| noErr | No error. |
| mFullErr | Not enough memory to perform the operation. |
| mZoneErr | Handle or pointer not in specified zone. |