I ran into another issue with the Camera SDK 1.5 and the S250e camera. It is only recognized on first connect. After disconnecting and reconnecting it, the SDK will no longer recognize it. This problem does not occur with the V120:SLIM.
Here is some sample code:
Code: Select all
int main(int argc, char* argv[])
{
char bu[128];
CameraLibrary_EnableDevelopment();
CameraManager::X().WaitForInitialization();
CameraLibrary::CameraList* pList = new CameraLibrary::CameraList();
// test code for camera plugging in and out
while( true )
{
CameraManager::X().ScanForCameras();
CameraManager::X().GetCameraList( *pList );
sprintf( bu, "%d\r\n", pList->Count());
OutputDebugString( bu );
Sleep(1000);
}
}
This problem can also be reproduced using visualtest.exe which will not see the camera after a disconnect and reconnect.
Thanks for any help,
Matthias