PDA

View Full Version : Error calling LiveStart()



Dmalesd
September 2, 2014, 18:18:29
I got the following error when calling the method to start live feed ie
AddHandler Me._IcImageCapture.DeviceLost, AddressOf Me.VideoFeedError

If Not IcImageCapture.DeviceValid Then
Me.NoTriggerDeviceConnected()
Return
End If

If Not IcImageCapture.LiveVideoRunning Then
IcImageCapture.LiveStart()
End If

ERROR

Unknown error occurred
Base Library Error : An unexpected DShowLibException occured: Error = startLive failed.
VideoCaptureDevice = DFG/USB2-lt
VideoFormat = UYVY (720x576)
In file : "GrabberPImpl.cpp" at line : 599

It works the first time not after that.

Many thanks
David

Michael Kirmse
September 3, 2014, 16:43:35
Dear David,

could you send a small sample project to support(at)theimagingsource.com that reproduces the error?

David
September 8, 2014, 18:30:58
I'm afraid I am unable to send a sample project. But looking at my source a bit further it looks like the object IcImageCapture is being instantiated a number of times. The object is used in a form and different parts of the code create a new version of the frm. Would you expect an error to occur in this situation, ie multiple instances of the imaging control are trying to get the video feed ?
So I'm thinking maybe its a software design problem - perhaps I should use the singleton pattern for the IcImageCapture object.

Thanks
David

Stefan Geissler
September 22, 2014, 15:02:54
Hi David.

The live video of one camera can be started once only. You can not start it in another created object of IC. I suppose, this is your problem.