Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creative Lab webcam and DirectShow problem

Status
Not open for further replies.

tasuki78

Programmer
Jun 12, 2003
7
US
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.
 
i think the dialog boxes arent supposed to be opened while showing a picture
 
I don't see why you can't open dialog boxes when showing pictures. Why do you think so?

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.
 
This problem that I had was solved by making sure that all the com interfaces where destroyed correctly. We were able to get it to work once this was done.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top