...
Calling any other licensing functions on the handle after this one will have undefined behavior.
Example
The following example shows the use of the LMX_Free function which deallocates all memory that was previously allocated by the licensing system.
It is important to not that you should call this function before you leave the application that initialized a handler.
Code Block | ||
---|---|---|
| ||
main.c
#include <lmx.h>
#include <stdio.h>
int main() {
LMX_HANDLE h;
LMX_FEATURE_INFO FI;
LMX_Init(&h)
if (LMX_Function() != LMX_SUCCESS) {
LMX_Free(&h)
exit(1);
}
LMX_Free(&h)
return 0;
} |