×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Creative Lab webcam and DirectShow problem

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

i think the dialog boxes arent supposed to be opened while showing a picture

RE: Creative Lab webcam and DirectShow problem

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.

RE: Creative Lab webcam and DirectShow problem

(OP)
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.

RE: Creative Lab webcam and DirectShow problem

Whoa, I just noticed the date on the original post.  ;)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close