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

Chapter 6 Memory Manager Functions

AZNewPClr

DSNewPClr

syntax

UPtr

 

AZNewPClr(size);

 

UPtr

 

DSNewPClr(size);

 

XXNewPClr creates a new pointer to a nonrelocatable block of memory of the specified

 

size and initializes the memory to zero.

 

Parameter

Type

Description

 

size

int32

Size, in bytes, of the pointer to create.

returns

A pointer to a block of size bytes filled with zeros. Returns NULL if the allocation

 

could not be performed.

 

 

 

 

 

AZNewPtr

DSNewPtr

syntax

UPtr

AZNewPtr(size);

 

 

UPtr

DSNewPtr(size);

 

XXNewPtr creates a new pointer to a nonrelocatable block of memory of the specified

 

size.

 

 

 

 

Parameter

Type

Description

 

size

int32

Size, in bytes, of the pointer to create.

returns

A pointer to a block of size bytes. Returns NULL if the allocation could not

 

 

be performed.

 

 

 

 

 

 

 

Manipulating Properties of Handles

AZHLock

syntax

MgErr

AZHLock(h);

AZHLock locks the memory referenced by the application zone handle h so that the memory cannot move. This means the memory manager cannot move the block of memory to which the handle refers.

Do not lock handles more than necessary; it interferes with efficient memory management. Also, do not enlarge a locked handle.

LabVIEW Code Interface Reference Manual

6-6

© National Instruments Corporation

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