Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagecpp
themeConfluence
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

...

.
TypeNameComment
voidaddressSpecifies the address of the virtual memory to be freed

...

Return Value

...

 

Options

...

 

Example

...

 

Code Block
languagecpp
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 (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "model" and parent = "6062220"