I have a very simple code running in a separate thread to detect the cameras connected to the PC, so this way I can prevent the software from running if there are less than 2 cameras connected. Th issue I am having is that CLEyeGetCameraCount() is just returning the number of cameras connected to my PC once I start the program, if I disconnect or connect a camera while the program is running, the number returned by CLEyeGetCameraCount() doesnt change.
To assure other pieces of code are not the cause I decided to run a very simple loop:
int numCameras = 0;
while(true)
{
numCameras = CLEyeGetCameraCount();
}
and numCameras just gets updated with the current number of cameras connected to the PC when the program starts, no connection or disconnection is detected. I am running a Win32 C++ application in a Win7 x64 computer. Is this a known bug? Are there any workarounds? I am new to CLEye development so might this be a rookie mistake of mine?
Thanks!