PDA

View Full Version : Bug in C# VCD Property Page sample program



GregE
May 3, 2017, 23:13:11
It doesn't display all the properties because an exception occurs at line 235 in VCDPropertiesDlg.cs : cbo.AssignItf(itf).

It fails on the second category "Device" in IC.VCDPropertyItems.CategoryMap.Categories (see line 56).

If I put in code to ignore "Device" category, it shows all of them.

if (Cat == "Device")
continue;

"Device" isn't a category in the "Show Original". Maybe it's supposed to be used for creating a custom "Select Device"?


Camera is DFK AFU130-L53
Visual Studio 2017 C#

Regards,
Greg

Michael Kirmse
May 24, 2017, 17:27:27
Dear Greg,

this is a very localized issue that should not occur with any other camera.
The error is caused by a false readout of a single property of the camera.
This has to be fixed either in the SDK itself or in the driver.

I have passed this on to the corresponding developers.

Your workaround should be fine for the moment.