Error HRESULT E_FAIL in almost all over the place

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
cerebellum
Blank Cone
Blank Cone
Posts: 13
Joined: 08 Jan 2010 08:10

Error HRESULT E_FAIL in almost all over the place

Postby cerebellum » 15 Jan 2010 04:13

Greetings.. I have just entered scripting after a long year of using VLC

I'm using ActiveX to control media files using VB.NET and have encountered lots of "Error HRESULT E_FAIL has been returned from a call to a COM component" without further explanation.

Here are some of them that I've found, please be so kind to tell me what I can do.

1. vlc.playlist.isPlaying returns exception: Error HRESULT E_FAIL has been returned from a call to a COM component. at AXVLC.IVLCPlaylist.get_isPlaying()
Condition: items is added into the playlist but not yet played. If vlc.playlist.playItem(thesong) has been executed, then this error does not appear anymore, even after paused or stopped

2. vlc.audio.channel returns exception: Error HRESULT E_FAIL has been returned from a call to a COM component. at AXVLC.IVLCAudio.set_channel(Int32 channel)
Condition: playlist is not played, but sometime works.
To reproduce the error:

Code: Select all

vlc.playlist.playItem(thesong) vlc.audio.channel = 3
I did some experiments with this 2 lines of codes and executed them separately (one button to play, one botton to change the channel) and it works; another experiment is to use a timer (1 second interval) after the play, then change channel. both work nicely.

3. vlc.input.rate returns exception: Error HRESULT E_FAIL has been returned from a call to a COM component. at AXVLC.IVLCInput.set_rate(Double rate)
Condition: same as number 2 above

I've googled them all and including in this forum and can't seem to find any clue.
Is there anything I've missed here? wrong keywords perhaps?

Thnx in advance.
Pls advice.

cerebellum
Blank Cone
Blank Cone
Posts: 13
Joined: 08 Jan 2010 08:10

Re: Error HRESULT E_FAIL in almost all over the place

Postby cerebellum » 20 Feb 2010 06:00

I did a 100 miliseconds interval and it still crashed, but when i put 101 ms, no more error

jacky912
Blank Cone
Blank Cone
Posts: 11
Joined: 10 Jul 2009 02:48

Re: Error HRESULT E_FAIL in almost all over the place

Postby jacky912 » 05 Mar 2010 09:33

What a great finding.
Honestly I believe this system's behaviour is limitation or bug.

cerebellum
Blank Cone
Blank Cone
Posts: 13
Joined: 08 Jan 2010 08:10

Re: Error HRESULT E_FAIL in almost all over the place

Postby cerebellum » 09 Mar 2010 05:45

So is there anything we can do to deal with it?
How can we file this bug to the developers?

Rohirm
New Cone
New Cone
Posts: 3
Joined: 26 May 2010 18:22

Re: Error HRESULT E_FAIL in almost all over the place

Postby Rohirm » 26 May 2010 18:30

Hi, I got this HRESULT E_FAIL error too (VB.NET 2008 and AxVLCPlugin2).

I am trying to check if VLC is currently playing or not.

vlc.playlist.isPlaying and vlc.input.state both causes the E_FAIL ("Error HRESULT E_FAIL has been returned from a call to a COM component.").
When video file is playing, then they work, but not before. So, any ideas how can I check the state before anything is playing?

Thanks!

EDIT: Also VLC.input.Time fails with E_FAIL. This occurs even when movie file is loaded and vlc.input.state returns value.

With 0.8.6 version all of the mentioned features worked perfectly!


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 8 guests