i write an multimedia player with the libvlc 1.1.7, c# and visualstudio 2008.
i check for some playlistentrys and if there anyone then i check for isPlaying and if this happens, i start the method X.playlist.stop(), but it creates an error... i dont know the error, because the exception and vs dont create one.
i set the breakpoint to the functionstart, and with F10 (singlesteps) it will go through to the _vlcplugin.playlist.stop() line, but then it stucks... the program can only closed by push shift + F5 or with taskmanager...
the other part of the program works fine, example playlist.add, playitem, or something else...
if you need any other informations, just ask
the function with playlist.stop():
Code: Select all
private void playlistloeschen()
{
if (_vlcplugin.playlist.itemCount > 0)
{
if (_vlcplugin.playlist.isPlaying == true)
{
_vlcplugin.playlist.stop();
}
_vlcplugin.playlist.items.clear();
_vlcplugin.playlist.clear();
}
if (playbox2.Items.Count > 0)
{
playbox2.Items.Clear();
}
_tempplayindex = -1;
button_play.Image = Properties.Resources.button_play;
_tpause = false;
}
Code: Select all
private void zwemmp_FormClosing(object sender, FormClosingEventArgs e)
{
// playlistloeschen();
this._vlcplugin.Dispose();
}