Device Discovery

Hi,

Sorry to hijack this thread, but I believe I ran into the same issue in the C++ SDK.
I can Snap ok after device discovery, but G2Wait results in a time-out (CVC_E_TIMEOUT).
Opening a camera through a .vin file works as expected, and does not produce the time-out on G2Wait.

Can you confirm that this is the same issue?

I tested this on a DALSA Genie Nano M1280 and a DALSA Linea LA-GC-04K05B.

(C++ code to reproduce the problem below.)

void Test_Camera_ok ()
{
    // Load the image
  IMG hCamera = nullptr;
  LoadImageFile ("C:\\Program Files\\STEMMER IMAGING\\Common Vision Blox\\Drivers\\GenICam.vin", hCamera);

  if (Snap (hCamera) == CVC_E_OK)
    std::cout << "Camera successfully snapped an image." << std::endl;

  G2Grab (hCamera);

  if (G2Wait (hCamera) == CVC_E_OK)
    std::cout << "Wait completed successfully." << std::endl;

  G2Freeze (hCamera, false);

  ReleaseObject (hCamera);
}


void Test_Camera_nok ()
{
  // Execute a simple discovery 
  ATLIST discoverList = nullptr;
  DODiscover ("", DO_DISCOVER_FLAG_IGNORE_VINS, 0, discoverList, 0);

  // Retrieve the JASON ACCESS TOKEN for the first device
  size_t stringSize = 0;
  DOEntryGetInfo (discoverList, 0, DO_DISCOVER_INFO_ACCESS_TOKEN, NULL, stringSize);

  std::string accessPath (stringSize, '\0');
  DOEntryGetInfo (discoverList, 0, DO_DISCOVER_INFO_ACCESS_TOKEN, &accessPath[0], stringSize);

  // Load the image
  IMG hCamera = nullptr;
  LoadImageFile (accessPath.c_str (), hCamera);

  ReleaseObject (discoverList);

  if (Snap (hCamera) == CVC_E_OK)
    std::cout << "Camera successfully snapped an image." << std::endl;

  G2Grab (hCamera);

  if (G2Wait (hCamera) == CVC_E_OK)
    std::cout << "Wait completed successfully." << std::endl;

  G2Freeze (hCamera, false);

  ReleaseObject (hCamera);
}