Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Labview Code Interface Reference Manual.pdf
Скачиваний:
33
Добавлен:
29.05.2015
Размер:
1.13 Mб
Скачать

 

 

Chapter 6 Memory Manager Functions

AZSetHSzClr

 

 

DSSetHSzClr

 

 

syntax

MgErr

ZSetHSzClr(h, size);

 

MgErr

DSSetHSzClr(h, size);

XXSetHSzClr changes the size of the block of memory referenced by the specified handle and sets any new memory to zero. You should not use this function on a locked handle.

 

Parameter

Type

Description

 

h

UHandle

Handle to resize.

 

size

int32

New size, in bytes, of the handle.

returns

MgErr, which can contain the errors in the following list.

 

Error

Description

 

 

noErr

No error.

 

 

mFullErr

Not enough memory to perform operation.

 

mZoneErr

Handle or pointer not in specified zone.

 

 

 

 

Allocating and Releasing Pointers

AZDisposePtr

DSDisposePtr

syntax

MgErr

AZDisposePtr(p);

 

MgErrD

SDisposePtr(p);

XXDisposePtr releases the memory referenced by the specified pointer.

 

Parameter

Type

Description

 

p

UPtr

Pointer to dispose.

returns

MgErr, which can contain the errors in the following list.

 

Error

Description

 

 

noErr

No error.

 

 

mZoneErr

Handle or pointer not in specified zone.

 

 

 

 

© National Instruments Corporation

6-5

LabVIEW Code Interface Reference Manual

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]