LabWindows/CVI Utility Library Multithreading functions return a CmtStatus code. The functions return a CmtStatus code with a value of 0 to indicate success and a negative value to indicate failure. Pass the CmtStatus code to CmtGetErrorMessage to get a description of the error code.
The following table lists the possible CmtStatus codes.
Code | Description |
0 | No error. |
Invalid handle. | |
Invalid parameter. | |
Invalid attribute ID. | |
Invalid event ID. | |
Out of memory. | |
The time limit expired. | |
Another callback is registered for this event. You can only register one callback per event. | |
Invalid callback ID. | |
Invalid thread ID. | |
System error occurred. | |
This thread or another thread is currently reading from the thread safe queue. | |
This thread or another thread is currently writing to the thread safe queue. | |
The thread safe queue is full. | |
The thread safe queue is empty. | |
You read more data than was available in the thread safe queue. | |
You wrote more data than space was available in the thread safe queue. Memory outside the queue might have been overwritten, putting your system in an unstable state. | |
The thread safe queue is configured to automatically flush when full. You cannot write more items to the thread safe queue than it can hold. | |
This type of access to the queue is not permitted. | |
The thread currently holding the write pointer cannot resize the thread safe queue. | |
You must release the pointer from the same thread that got it. | |
You cannot set this attribute while threads exist in the thread pool. | |
Invalid thread priority. | |
Invalid function ID. | |
The function ID you passed is owned by the thread pool. This operation can only be performed on a function ID that you own. | |
The function attribute is not available at this time. | |
You can only perform this operation on a thread pool thread. | |
You cannot perform this operation on the default thread pool. | |
You cannot reduce the maximum number of threads in the thread pool. | |
You must release the thread safe variable from the same thread that got it. | |
You must release the lock from the same thread that got it. | |
You cannot discard a lock that is still owned. | |
You must get the lock before releasing it. |