...
Code Block | ||||
---|---|---|---|---|
| ||||
void edmiFreeQueryResult(SdaiQueryResult queryResult);
|
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.
...
Arguments
...
Type | Name | Comment |
SdaiQueryResult | queryResult | The address of the EDMquery result data returned from the edmiExecuteQuery and edmiExecuteQueryBN operations. |
...
Return Value
...
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Options
...
Example
...
Code Block | ||
---|---|---|
| ||
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 */ |
See also
Filter by label (Content by label) | ||||||
---|---|---|---|---|---|---|
|