Menu

Multiple instances of Webcam USing DShowLib

Raj
2009-09-16
2012-10-29
  • Raj

    Raj - 2009-09-16

    Hi,
    How can I add multiple instances of my webcam to my windows application. If
    the camera device is in use with some other application It throws an error
    saying that the device is already in use. How to sort that out?

     
  • snarfle

    snarfle - 2009-09-16

    I don't know of any way to detect that a device is in use other than trying to
    use it and checking for the error.

     
  • Raj

    Raj - 2009-09-16

    hi,
    thanks for the reply.
    I am doing the same thing. But is there any method by which I can force the
    aplication to quit which is accessing the camera device. Or I can
    programmatically disconnect the device and then restart it with my application

     
  • snarfle

    snarfle - 2009-09-17

    If the "other program" is something you wrote, then I suppose you
    could work out a sharing mechanism.

    Other than that, I don't believe there is a "crash other
    application" method (which is what would most likely happen if you could
    "steal" the device from some other application).

    I'm not even certain it is possible to figure out what (other) application has
    the device open. While I believe you can do this with files, I'm not sure that
    cameras use Handles.

     

Log in to post a comment.