Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »


 
Releases the virtual memory allocated by the edmiExecuteQuery and edmiExecuteQueryBN operations.
The EDMinterface is allocating the required virtual memory for the result from an EDMquery. It is the calling applications responsibility to release this virtual memory when it is not longer needed to avoid "out of virtual memory" and avoid memory leakage.
Related functions: edmiExecuteQuery , edmiExecuteQueryBN
Header:
#include "sdai.h"
Prototype:
void edmiFreeQueryResult(SdaiQueryResult queryResult);
Arguments:

queryResult

The address of the EDMquery result data returned from the edmiExecuteQuery and edmiExecuteQueryBN operations.

Returns:
Void.
EXAMPLE
EdmiError rstat;
SdaiModel modelId;
SdaiQuery queryId;
SdaiQueryResult qs;
. . .
if (rstat = edmiExecuteQuery(modelId,
queryId, 
2, 
RESULT_AS_TABLE, 
&qs, 
sdaiSTRING, "PIDaba44889", 
sdaiSTRING, "myName")) { 
/* Error in operation */ 
printf("\nError: %s in edmiExecuteQuery\n", 
edmiGetErrorText(rstat)); 
goto error; 
}
/* Use query result */
. . .
edmiFreeQueryResult(qs);
/* Query result no longer accessible */

  • No labels