View Full Version : Show video from one DFG/SV1 in two views simultaneously?

August 3, 2004, 11:16:04
I'm using a DFG/SV1 framegrabber to show overlayed live video in a view in a MDI application. So I made a view class with a Grabber member and open the device and start the live video in it's OnInitialUpdate() handler.
This works fine and I see the live video and overlay in the view, but when I try to open a second view of that view class (so, it's Grabber member opens the same DFG/SV1 device) I get the following error message:

Exception DEBUG: in ..\TISUDSHL\Grabber.cpp at line 1147:
CVideoCaptureDevice::getCrossbar(): allocating crossbar failed, because filter was not found in file ..\DShowLib\VideoCaptureDevice.cpp at line 333.

Is it possible to have more than one view displaying the live video of one single DFG/SV1 card at the same time?

Johannes Vogel
August 3, 2004, 14:12:39

A device like a frame grabber can obly be used exclusively by one instance of the IC Imaging Control class "Grabber". You should hold the instance to the Grabber object in the document. The views can render the images using GDI functions.