|
![]() |
![]() |
version 2003
PA_SetBlobHandleVariable (aVariable; hBlob)
Parameter | Type | Description | |
aVariable | PA_Variable * | → | Pointer to the variable to access |
hBlob | PA_Handle | → | New value of the handle |
Description
The routine
PA_SetBlobHandleVariable
sets the handle of the variable pointed to by
aVariable
to the handle
hBlob
.
This is useful for memory optimization:
PA_SetBlobVariable
duplicates the BLOB, since
PA_SetBlobHandleVariable
changes only the value of the handle to the BLOB data.
WARNING
The kind of of the variable pointed to by
aVariable
is set to
eVK_Blob
by the routine, even if it was not its previous kind.
Make sure that you do not change 4D variable kinds (using
PA_GetVariable
), especially in compiled mode.
IMPORTANT NOTE
After the call, the handle belongs to the variable.
Example