Re: AddSourceFilterForMoniker() locks up sometimes.

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Thore Karlsen [MVP DX] (sid_at_6581.com)
Date: 06/19/04


Date: Sat, 19 Jun 2004 14:18:15 -0500

On 18 Jun 2004 20:20:07 -0700, no.more.spam@stoneentertainment.com
(Brian Stone) wrote:

>I've coded a simple filter graph to capture frames from a video camera
>via the Sample Grabber filter. To find the camera, I build the
>enumated list of devices and pick the first one out of the list,
>exactly as in Microsoft's source examples. I then add the camera
>filter to the graph via AddSourceFilterForMoniker. However, sometimes
>this function will lock up... like it's in a deadlock situtation or an
>infinite loop. It simply stops and never returns.
>
>My application works great when AddSourceFilterForMoniker returns
>succesfully! I can grab frames from the Sample Grabber with no
>problems at all. However, about half the time,
>AddSourceFilterForMoniker just stops for no apparent reason, and the
>program has to be restarted.
>
>When I quit the program, I make sure to properly release all of the
>filter interfaces and call CoUninitialize() in the same thread that
>initialized the COM. I also check all errors from every function, and
>everything appears to be S_OK. So... any ideas?

If you set your debugger up to use debug symbols from the Microsoft
symbol database, and you break into the debugger when your program is
locked up, what functions are the threads in your program executing?

-- 
New to newsgroups? Read: http://dev.6581.com/newsgroups.html


Relevant Pages

  • Re: AddSourceFilterForMoniker() locks up sometimes.
    ... >>I've coded a simple filter graph to capture frames from a video camera ... >>via the Sample Grabber filter. ... To find the camera, I build the ... I can grab frames from the Sample Grabber with no ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Sony DMX-P01 mixer & Zaxcom
    ... Have you tried filtering the power supply leads to the Zaxcom with either capacitors, ... AFAIK, there is no supplied camera snake supplied with the machine, just the male plug that attaches to the mixer. ... Seems the only solution is to filter the power through a DC to DC convertor,, and hope that fixes the problem. ...
    (rec.arts.movies.production.sound)
  • Re: Pentax K10D beats (sharpness, detail) Canon 40D?
    ... But a similar image frequency is far harder to filter out. ... Oversampling in audio, unless I misunderstand, would be sampling ... call "resolution" and the damaging effects of aliasing. ... may not be the same as the original camera image resolution. ...
    (rec.photo.digital.slr-systems)
  • Re: UV - or not UV?
    ... I have long had the habit of fitting a UV filter to all my camera ... and wish to fit UV filters to each lens. ... all that I want is a Marumi 'Digital High Grade' clear 'Lens Protect' ...
    (rec.photo.digital)
  • RE: Usb camera still images.
    ... The camera which i ... PinMux Audio Input Pin - Unconnected ... Filter Image Sink Filter ... PinSmart Tee Capture pin - Connected ...
    (microsoft.public.windowsce.app.development)