Creative Lab webcam and DirectShow problem
Creative Lab webcam and DirectShow problem
(OP)
Hi, I have a problem with an app that I can helping develop. This app contains a video preview dialog using directshow to show a video preview from a web cam connected via a usb port. It opens fine and displays everything, but upon closing of the dialog box, we are unable to reopen it unless we close the application or unplug then reconnect the camera while the app is still running. I would love to hear from anyone here to prevent an ass chewing from my bosses. We are using dX9.
RE: Creative Lab webcam and DirectShow problem
RE: Creative Lab webcam and DirectShow problem
I think the problem might be that the dialog box is not releasing all references to the filter graph. Unless you do this, the web cam source filter instance will still be present and may prevent another from being created. Look at your code carefully and watch for reference leaks.
RE: Creative Lab webcam and DirectShow problem
RE: Creative Lab webcam and DirectShow problem