Problem with WM ASF filter under DShow
WMPTalk.com Forum Index WMPTalk.com
Discuss Windows Media Player
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web wmptalk.com
Problem with WM ASF filter under DShow

 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Encoders
Author Message
Amit
Guest





Posted: Fri Oct 08, 2004 5:03 am    Post subject: Problem with WM ASF filter under DShow Reply with quote

I am trying to use the WM Asf Writer for doing the encoding of mpeg-2 file
programmtically under DsHow for a custom PVR like application. everything
works fine and the encoding is done.

however, on exiting I try to release the Com Object that holds the WMMRiter
Interface and I get a violation. I am using the Com Object usng a CCOmptr
template.

When exiting the capture, I check for the validity of the CComPtr and based
on that, I call the release and of course, it goes into the smart
pointerCComptr destructor. It sees that the Holder object of the smart
pointer( which is WM writer) has a valid pointer..but apparently the vtbl
pointer is messed up and the pointer Release function is NULL and therefore
I get this violation.

anyone seen this problem and how did they solve it ? Just FYI, I have a
bunch of other similar interfaces that I release at the same time and I dont
see a problem with them, because they are either NULL or if valid, have the
correct vtbl entry and the pointers set correctly.

Is there a different way to handle WM ASF filters ?

Thanks.

Back to top
The March Hare [MVP]
Guest





Posted: Fri Oct 08, 2004 5:24 am    Post subject: Re: Problem with WM ASF filter under DShow Reply with quote

On Thu, 7 Oct 2004 18:03:04 -0700, Amit wrote:
<snip>

Please DO NOT multi-post.

New to newsgroups? Read: http://dev.6581.com/newsgroups.html
Back to top
Guest






Posted: Sun Oct 10, 2004 9:12 am    Post subject: Re: Problem with WM ASF filter under DShow Reply with quote

Multi-post, smulti-post.... What's the problem? He needs an answer and he
needs it now. Is there a real reason why someone should not post to more
than one newsgroup? Are we wasting your bandwidth or your diskspace?

Anyhow, I've used the WMWriter filter without such problems. Make sure you
are not calling CoUninitialize too soon, I had that problem with other COM
interfaces and it caused such problems....

MD


"The March Hare [MVP]" <phil@ndsm.maps> wrote in message
news:13ncah6heknso.1gthkay2072tv$.dlg@40tude.net...
Quote:
On Thu, 7 Oct 2004 18:03:04 -0700, Amit wrote:
snip

Please DO NOT multi-post.

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

I am trying to use the WM Asf Writer for doing the encoding of mpeg-2 file
programmtically under DsHow for a custom PVR like application. everything
works fine and the encoding is done.

however, on exiting I try to release the Com Object that holds the WMMRiter
Interface and I get a violation. I am using the Com Object usng a CCOmptr
template.

When exiting the capture, I check for the validity of the CComPtr and based
on that, I call the release and of course, it goes into the smart
pointerCComptr destructor. It sees that the Holder object of the smart
pointer( which is WM writer) has a valid pointer..but apparently the vtbl
pointer is messed up and the pointer Release function is NULL and therefore
I get this violation.

anyone seen this problem and how did they solve it ? Just FYI, I have a
bunch of other similar interfaces that I release at the same time and I dont
see a problem with them, because they are either NULL or if valid, have the
correct vtbl entry and the pointers set correctly.

Is there a different way to handle WM ASF filters ?

Thanks.

Back to top
The March Hare [MVP]
Guest





Posted: Sun Oct 10, 2004 10:20 pm    Post subject: Re: Problem with WM ASF filter under DShow Reply with quote

On Sun, 10 Oct 2004 05:12:33 GMT, denczek@earthlink.net wrote:

Quote:
Multi-post, smulti-post.... What's the problem? He needs an answer and he
needs it now. Is there a real reason why someone should not post to more
than one newsgroup? Are we wasting your bandwidth or your diskspace?

The basic problem is that it wastes time. Not everyone reads all the
newsgroups and the question may end up being answered several times. Try
answering several thousand questions and tell me how you feel about
multiposting then.

New to newsgroups? Read: http://dev.6581.com/newsgroups.html
Back to top
 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Encoders All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Microsoft Office Forum New Topics
Powered by phpBB