Error handling exceptions
You should register a callback function to catch exceptions generated by underlying DataBlade® API functions called by Large Object Locator functions. For example, if you call lld_read() to open a smart large object, Large Object Locator calls the DataBlade API mi_lo_read() function. If this function returns an error and generates an exception, you must catch the exception and close the object you have open for reading.
Use the mi_register_callback() function to register your callback function. The callback function should track all open large objects, and in the event of an exception, close them. You can track open large objects by creating a data structure with pointers to LLD_IO structures, the structure that the lld_open() function returns when it opens an object. Use the lld_close() function to close open large objects.