In general, the uEye API is thread-safe. This means that the uEye API can be accessed by multiple threads simultaneously. Simultaneous attempts to call the same function are recognized and prevented by the driver.

|
Note on multi-threading
We recommend that you call the following functions from one thread per camera in order to avoid unpredictable behavior of the application.
|
|

|
Note on using USB cameras under Windows
The following events require a Windows message loop. This message loop has to be executed by the thread that loads the uEye API. The message loop is usually provided by the application window. In some cases, the message loop might not be created automatically (e.g. in console applications). In this case you will need to implement the message loop yourself.
This applies to the following uEye events:
• | IS_SET_EVENT_DEVICE_RECONNECTED |
If no message loop exists, a USB camera will not be automatically detected after reconnecting.
|
|