Throughout the Micro API, routines are designed and implemented to allow callers not to worry about memory management. The rule is that the required buffers are allocated to their minimum size, and released as soon as they are not needed anymore.
For example, when starting a statement, information about its parameters, if it returns a result set, result set columns and their type are attached to the statement handle. This block of memory is released when the statement is released.
Memory for keeping parameters and result set columns are allocated either when the applications starts setting input parameters (see Data input routines), or when the statement is executed (
MimerExecute), or the cursor is opened (
When the statement is executed, the database server reads the parameters that have been set, and if there are no result set or output parameters returned, the Micro API will release the memory promptly. If there are output parameters, or result set data, memory to keep this information is retained until the statement or cursor is closed.
Mimer Information Technology AB
Voice: +46 18 780 92 00
Fax: +46 18 780 92 40