View Full Version : uEye 1645LE and ImagingSource

June 2, 2009, 16:59:53

We've been using the Imaging Source SDK .NET for a few years for video capture. Our code works fine with for example the Canon HV20/HV30 and
various web cams. However, recently we've started using the uEye 1645LE
USB camera and the application fails to initialise the camera.

We get an exception when making the following call in C#:

icImagingControl1.LoadDeviceStateFromFile(Properti es.Settings.Default.deviceState, true);

The exception message is "Exception from HRESULT: 0x800A0022"

The device works fine when using the Imaging Source DemoApp.

Any ideas what might be causing this?

Best regards

Stefan Geissler
June 3, 2009, 09:57:01

Yes, I know this problem. The video format is saved with negative height in the XML file and the camera denies to set the frame rate. Thus I suggest to correct the negative height and remove the <fps>.*</fps> from the XML file.
The "SaveDeviceStateFromFile" function saves the values, that are received from the camera, without changing them.

You can load the XML in a stream, change the values and use the LoadDeviceState() function call to set the values.

Unfortunately I have no C# sample for this, only a C++ sample.

I am very sorry for inconvenience using the IDS camera.