Click here to Skip to main content
11,926,429 members (57,766 online)
Rate this:
Please Sign up or sign in to vote.
See more: VB VB.NET media VS2012
Screenshot Error:

<Img src="" width="700px">

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 I get the above error.

Actual Code:

Public Class Form1
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    End Sub
End Class

How do I fix?
Posted 29-Apr-13 5:21am
Edited 29-Apr-13 5:33am
Sergey Alexandrovich Kryukov 29-Apr-13 10:25am
In what line?
Where is the declaration of AxVLCPlugin21?
BlueVLC 29-Apr-13 10:29am
Its VB.Net you just drag it from the toolbox onto the form

The error is on the line
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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:[^]
BlueVLC 29-Apr-13 19:04pm
Tried version 2.5 and worked fine :-)
Have a nice night mate
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web03 | 2.8.151126.1 | Last Updated 29 Apr 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100