Page 1 of 1

Error HRESULT E_FAIL in almost all over the place

Posted: 15 Jan 2010 04:13
by cerebellum
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.

Re: Error HRESULT E_FAIL in almost all over the place

Posted: 20 Feb 2010 06:00
by cerebellum
I did a 100 miliseconds interval and it still crashed, but when i put 101 ms, no more error

Re: Error HRESULT E_FAIL in almost all over the place

Posted: 05 Mar 2010 09:33
by jacky912
What a great finding.
Honestly I believe this system's behaviour is limitation or bug.

Re: Error HRESULT E_FAIL in almost all over the place

Posted: 09 Mar 2010 05:45
by cerebellum
So is there anything we can do to deal with it?
How can we file this bug to the developers?

Re: Error HRESULT E_FAIL in almost all over the place

Posted: 26 May 2010 18:30
by Rohirm
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!