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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem using IStreamBuilder interface in DirectShow filter!!! HELP!!!

Status
Not open for further replies.

blafores

Programmer
Aug 12, 2002
1
CA
Hi,

I'm a Directshow software developper and I'm currently experimenting problems with a specific graph creation. Here is the problem :

- I have a filter with 2 output pins.
- The two pins support the *IStreamBuilder* interface by reimplementing *::Render()* and *::Backout()*
- I create the rest of the filters downstream in *::Render()* and remove those filter in *::Backout()*

When my filter is created during a graph creation process, *::Render()* is called on each of my output pins and the filter creation complete correctly and playback works as well.

THE BIG PROBLEM occurs when I close
the graph : *::Backout()* is never called and the filters I've created with *::Render()* are never destroyed, their destructor is never called, I've monitored it. It definitely looks like an reference count problem, but I'm having a hard time trying to find the source of the problem. I was never able to find any information about this weird behavior.

I really need this to work because other wise we end up with big leaking problem when we close the graph and create it again without quitting the application.

Thanks for the help, it would be appreciated :eek:)

Benoit laforest
____________________________________________________________
Concepteur logiciel / Software designer
Matrox Vidéo - Team DirectShow
blafores@matrox.com <mailto:blafores@matrox.com>
(514) 822-6000 ext7189
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top