Jump to content
  • Advertisement
Sign in to follow this  
butterpuff

Filter connection

This topic is 4328 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I am connecting my colorspace converter output pin with vmr9 input pin by using: hr = pGraph->Connect(OutPin, InPin); I am checking all the possible values of hr. But the problem is that during runtime, I get the error "Unhandeled Exception. Access Violation". When I debug the program, the cause of problem is the above-mentioned statement. But the problem gets worse by the fact that hr doesn't even happen to get any value. The function Connect is causing some error due to which the program halts at this point and exits and hr doesn't get any value. In simple words, before assigning any value to hr, the program gives the error and halts. What can be the problem? Does anyone know? Thanks.

Share this post


Link to post
Share on other sites
Advertisement
You aren't really giving enough information to help out much, but I would guess (and I do mean guess) that your pGraph variable isn't initialized, or properly assigned, or something like that. Take a look at the value of pGraph in the debugger when the access violation occurs.

Share this post


Link to post
Share on other sites
I have debugged my program and the variable pGraph is a valid pointer. Actually it is such a strange problem that I can't perceive what is the reason behind it. Basically, I have made a program in which I am taking realtime data from the webcam using the following filtergraph:

source filter --> colorspace converter --> VMR9 filter

It works fine and I get the desired result. In the second program I have made a custom allocator-presenter to play a precaptured video which also works fine. In the 3rd program which is causing problem, I am mixing both the functionalities i.e. using custom allocator-presenter to render my realtime video. So I am using my custom allocator-presenter instead of that of using VMR9's and the same code of filter connection in this program. In this program, I get error at the statement where I am connecting my VMR9 with colorspace converter.

hr = pGraph->Connect(OutPin, InPin);

The format of both the colorspace converter and the VMR9 is ARGB32. Had there any problem in the connection of output pin of colorspace converter and the input pin of VMR9 filter, "hr" would get a value indicating that these pins can't be connected. But before "hr" gets any value, the program terminates by giving the error: "Unhandeled exception, Access violation".

Can anyone plz help?

Thanks

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!