Re: AddSourceFilterForMoniker() locks up sometimes.
From: Thore Karlsen [MVP DX] (sid_at_6581.com)
Date: 06/19/04
- Next message: Springer: "Re: MPEG-2 Duration and Seeking"
- Previous message: Thore Karlsen [MVP DX]: "Re: Problem with filter pins"
- In reply to: Brian Stone: "AddSourceFilterForMoniker() locks up sometimes."
- Next in thread: Brian Stone: "Re: AddSourceFilterForMoniker() locks up sometimes."
- Reply: Brian Stone: "Re: AddSourceFilterForMoniker() locks up sometimes."
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Springer: "Re: MPEG-2 Duration and Seeking"
- Previous message: Thore Karlsen [MVP DX]: "Re: Problem with filter pins"
- In reply to: Brian Stone: "AddSourceFilterForMoniker() locks up sometimes."
- Next in thread: Brian Stone: "Re: AddSourceFilterForMoniker() locks up sometimes."
- Reply: Brian Stone: "Re: AddSourceFilterForMoniker() locks up sometimes."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|