[vlc-devel] CLI Bindings : AccessViolationException on player

Damien maitredede at gmail.com
Tue Dec 8 16:19:55 CET 2009


Hi, I have made a simple test...

When running outside the debugger (running debug binary on command line) I
have these messages :

[0x1d385c] main libvlc error: no memcpy module matched "any"
[0x3c343ac] main access error: no access module matched "file"
[0x3c38184] main input error: open of
`file/xspf-open:///C:/Users/damien/AppData/Roaming/vlc/ml.xspf' failed: no
access module matched "file"
[0x3c38184] main input error: Your input can't be opened
[0x3c38184] main input error: VLC is unable to open the MRL
'file/xspf-open:///C:/Users/damien/AppData/Roaming/vlc/ml.xspf'. Check the
log for details.
[0x3c345cc] main interface error: no interface module matched "hotkeys,none"
[0x3c345cc] main interface error: no suitable interface module
[0x1d385c] main libvlc error: interface "hotkeys,none" initialization failed
[0x1d385c] main libvlc error: option drawable-xid does not exist

My code shows some data :
--8<----8<----8<----8<----8<----8<--
Setting VLC Path as C:\Program Files\VideoLAN\VLC
Running on LibVLC ver=1.0.3 Goldeneye chg=exported comp=gcc version
4.2.1-sjlj (mingw32-2)
OS is Win32NT version Microsoft Windows NT 6.1.7600.0
--8<----8<----8<----8<----8<----8<--

Sample code :
--8<----8<----8<----8<----8<----8<--
string pluginPath; // var set to my vlc plugin directory
string video = @"http://www.facethewind.com/videos/may4_sm.mpg";
string[] vlcargs = new string[] { "--ignore-config", "--plugin-path",
pluginPath };
using (VLC instance = new VLC(vlcargs))
{
    Console.WriteLine("Loading Media : {0}", video);
    Media media = new Media(instance, video);
    media.StateChanged += new Media.StateChange(media_StateChanged);
    media.MetaChanged += new Media.MetaChange(media_MetaChanged);
    media.DurationChanged += new
Media.DurationChange(media_DurationChanged);
    media.PreparseChanged += new
Media.PreparseChange(media_PreparseChanged);

    Console.WriteLine("Media.Location : {0}", media.Location);
    Console.WriteLine("Creating Player from media...");
    Player player = new Player(media);
    Console.WriteLine("Playing...");
    player.Play();

    Console.WriteLine("Waiting for 'Enter' key press to quit...");
    System.Console.ReadLine();
}
--8<----8<----8<----8<----8<----8<--

When I want to print Media.Location, I have only a control character : 0x01.
When I call the Player.Play() function, the event "MetaChanged" is raised
with meta = "NowPlaying" value, but the "LibVLC.Play" function raises an
AccessViolationException when calling native method.
Same behavior with or without the debugger...

I will try other things...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20091208/0869f71e/attachment.html>


More information about the vlc-devel mailing list