My setup has 2 camera’s, I open “Common Vision Blox Management Console” and select one under the GenICam Device Configurator.
In my own program I only connect to the one selected, then switch from device in CVBMC.
Camera’s in my setup:
in %CVB% I rename the CVFactory_new CVFactory_old depending on which I want to use.
Tested it again with latest code, now I sometimes get this error with both CVFactory dlls:
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'VinDevice'.
at WpfApp1.CvbGrabber._OpenDevice() in C:\ServerCopy\19-0062 Pick and skewer\Sync\Test\WpfApp1\WpfApp1\CvbGrabber.cs:line 96
I just saw that the siFilterDriver was missing because I did a reinstall of the software.
with old CVFactory dll I did a few tests and problem didn’t happen.
New one gave the problem above.
the memory access violation did’t happen anymore.
WpfApp1.zip (2.0 MB)