Error HRESULT E_FAIL in almost all over the place
Posted: 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:
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.
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
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.