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 | size_t | New size, in bytes, of the handle. |
MgErr, which can contain the following errors. If you receive errors from CIN functions, most error names correspond to LabVIEW error codes.
| Value | Corresponding Error Code or Description |
|---|---|
| noErr | No error. |
| mZoneErr | Handle or pointer not in specified zone. |
| mFullErr | 2 |