Initializing help system before first use

delref

delref


Purpose
Decrease the reference count of a referenced object.
Synopsis
void delref(XPRMcontext ctx,int type, void *ref);
Arguments
ctx 
Mosel's execution context
type 
Type or structure of the object
ref 
Reference of the object
Further information
This function must be used after a reference saved with newref becomes useless for the native code in order to let the system release the object in case it is no longer referenced. The parameter type can be XPRM_TYP_MPVAR, XPRM_TYP_LINCTR, XPRM_STR_ARR, XPRM_STR_LIST, XPRM_STR_SET or the type code of an external type.
Related topics