I am trying to use the CIL bindings of VLC found in vlc git in folder /bindings/cil/src, it uses direct calls to the libvlc dll.<div><br></div><div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#ffffff" text="#000000"><br>
_VLC = new VideoLan.VideoLanClient(_VLCPath, optsdebug);  <-- I
specify the path, you do not<div class="im"><br></div></div></blockquote><div><br></div><div>VLC Instance constructor only takes options as argument.</div><div>Either I append VLC path to environnement path, or I run my app directly from VLC path.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div bgcolor="#ffffff" text="#000000"><div class="im">
VideoLan.VlcMedia mx = _vlc.NewMedia(fn);
<br><br></div></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div bgcolor="#ffffff" text="#000000"><div class="im"></div>
and<div class="im"><br>
VideoLan.VlcMediaPlayer cplayer = _VLC.NewMediaPlayer(playwindow); </div></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div bgcolor="#ffffff" text="#000000">
<div class="im"></div>
I derive my COM objects directly from the instantiated _VLC.<br>
<br>
You derive them as NEW and point to _VLC... I am not sure if this could
be posing an issue or not (one would think not, but then again it is
just code...... and could have a bug)<br>
<br></div></blockquote><div>Instance does not have methods to create these objects, but these object have constructor that take the instance as argument, or an existing element created with instance as parameter. </div><div>
 </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div bgcolor="#ffffff" text="#000000"><div class="im">Player player = new Player(_VLC);<br>
<br></div>
you should be using playwindow(the handle to your window) here:<br>
<br>
Player player = new Player(playwindow);<br></div></blockquote><div><br></div><div>I have forgotten to set the HWND of player to window handle (I have needed to change current source type from SafeHandle to IntPtr, or program would not compile).</div>
<div>But even with this, the behavior is the same : crash at MediaPlayer.Play()</div><div><br></div><div>Can you send me directly the full source of what I should test please ?</div><div><br></div><div>But there is still the point of the different behavior of string marshalling between frameworks...</div>
<div><br></div><div>Damien</div></div></div></div>