VLC错误Visual Basic.Net? [英] VLC error Visual Basic.Net ?

查看:74
本文介绍了VLC错误Visual Basic.Net?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

屏幕截图错误:



< Img src =http://oi41.tinypic.com/2v94429.jpgwidth =700px>



错误:

对象引用未设置为对象的实例。

错误在线: AxVLCPlugin21.playlist.items.clear()



当我尝试清除Visual Basic.net中的vlc播放列表时,我收到上述错误。



实际代码:



Screenshot Error:

<Img src="http://oi41.tinypic.com/2v94429.jpg" width="700px">

Error:
Object reference not set to an instance of an object.
Error is on the line: AxVLCPlugin21.playlist.items.clear()

When I try to clear the vlc playlist within Visual basic.net I get the above error.

Actual Code:

Public Class Form1
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        AxVLCPlugin21.playlist.items.clear()
        AxVLCPlugin21.playlist.add("file:///C:/Users/Andrew/Desktop/MovieTrailer1.avi")
        AxVLCPlugin21.playlist.play()
    End Sub
End Class







如何修复?




How do I fix?

推荐答案

它可能是较新的VLC 2.xx插件版本的问题。我和他们只有悲伤。我运气好的最后一个版本是:



http://download.videolan.org/pub/videolan/vlc/1.1.9/win32/ [ ^ ]
It may be a problem with the newer VLC 2.x.x plugin versions. I''ve had nothing but grief with them. The last version that I''ve had any luck with is:

http://download.videolan.org/pub/videolan/vlc/1.1.9/win32/[^]


此处没有VLC插件工具箱,所以你正在使用第三方组件。



错误是消息使它非常明显。



AxVLCPlugin21,AxVLCPlugin21.playlist或AxVLCPlugin21.playlist.items返回Nothing,null为C#。你不能在Nothing上调用方法或获取/设置属性值。



不可能说出哪一个抛出异常。当调试器中的变量在抛出异常的行上停止时,你必须检查它们。
There is no VLC plugin in the toolbox, so you''re using a 3rd party component.

The error is message makes it pretty obvious.

Either AxVLCPlugin21, AxVLCPlugin21.playlist, or AxVLCPlugin21.playlist.items is returning Nothing, of null is C#. You can''t call methods or get/set property values on Nothing.

It''s impossible to say which one of those is throwing the exception. You''ll have to inspect the variables in the debugger when it stops on the line that threw the exception.


这篇关于VLC错误Visual Basic.Net?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆