Hello, I get an error thrown when I execute the following lines of code:
#include <iostream>
#include <cvb/device_factory.hpp>
#include <cvb/utilities/system_info.hpp>
#include <cvb/driver/stream.hpp>
int main(int argc, char* argv[])
{
try
{
auto path = Cvb::InstallPath();
path += CVB_LIT("Drivers\\GenICam.vin");
// use command line argument if provided.
if (argc > 1)
{
std::string inputPath(argv[1]);
path = Cvb::String(inputPath.begin(), inputPath.end());
}
// expand environment variables in path
path = Cvb::ExpandPath(path);
// open a device
auto device = Cvb::DeviceFactory::Open(path, Cvb::AcquisitionStack::Vin);
}
catch (const std::exception& error)
{
std::cout << error.what() << std::endl;
}
}
Output while Debuging:
Exception thrown at 0x00007FFB5B034ED9 in CppStreamConsole.exe: Microsoft C++ exception:
CVBDDK::DDKException at memory location 0x000000FAD98FEC50.
Exception thrown at 0x00007FFB5B034ED9 in CppStreamConsole.exe: Microsoft C++ exception:
Cvb::V_1_5::CvbException at memory location 0x000000FAD98FF480.