If multiple threads share a context, all of them must use the same error handling method: all threads sharing the context must use the inline (cs_diag) method or all threads must use the callback method.If errors are handled inline with cs_diag, then each thread must call cs_diag to retrieve its own CS-Library error messages. cs_diag only shows messages generated by the calling thread.