...
It is important to note 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> LMX_HANDLE h; int main() { LMX_FEATURE_INFO FI; LMX_STATUS s; exit_on_error(LMX_Init(&h)); if ((s = LMX_GetFeatureInfo(h,"nonExistingFeature", &FI)) != LMX_SUCCESS) { if (h != NULL) { fprintf(stderr, "%s\n", LMX_GetErrorMessage(h)); LMX_Free(h); } else { fprintf(stderr, "%s\n", LMX_GetErrorMessageSimple(s)); fflush(stderr); exit(1); } LMX_Free(h); return 0; } } |