edmiFree
void edmiFree(void *address);
Frees virtual memory allocated by an EDMinterface function. All EDMinterface functions that read a data value of the primitive types : sdaiSTRING, sdaiENUMERATION, and sdaiBINARY will allocate virtual memory to hold the actual data value. It is the responsibility of the calling application to free this memory when appropriate by invoking the edmiFree function to avoid "out of virtual memory error". Likewise the EDMinterface function that returns a typed value will allocate virtual memory to hold the type information, i.e. the typeList element in the tSdaiSelect structure, hence it is the responsibility of the calling application to free this virtual memory by invoking the edmiFree function when appropriate.
Arguments
Type | Name | Comment |
void | address | Specifies the address of the virtual memory to be freed |
Return Value
Â
Options
Â
Example
Â
SdaiInstance manId; SdaiString givenName,familyName; SdaiErrorCode rstat; ... sdaiGetAttrsBN(manId, 2, "FamilyName", sdaiSTRING, &familyName, "GiveName", sdaiSTRING, &givenName); if (rstat = sdaiErrorQuery()) { /* Error in operation */ printf("\nError: %s in sdaiGetAttrsBN\n", edmiGetErrorText(rstat)); goto error; } printf("\nFamilyName: %s GivenName: %s",familyName,givenName); edmiFree(familyName); edmiFree(givenName); ...
Â
See also
Filter by label
There are no items with the selected labels at this time.
Â