Page 1 of 1

axVLCplugin C# IDE shutdown

Posted: 05 Feb 2012 17:19
by radnix
OS: Windows 7
IDE : .Net Visual Studio 2008 and 2010
Language : C#
VLC : activex axVLCPlugin v1 and v2
Project : x86

After adding the activex com component axVLCPlugin v1 or v2 to a windows form, it compiles ok. Run it and the entire IDE (Visual Studio) shuts down and restarts.

I have registered the axvlc.dll. I have tried this on 3 separate PC's with the same results.

In my project reference : AXVLC and AXAXVLC both version 1.0.0.0

The winform code is a simple form window, no other code or controls.

I have searched our forum for similiar results but no leads.

Anyone experienced this before? Thanks!

Re: axVLCplugin C# IDE shutdown

Posted: 06 Feb 2012 19:04
by VLC_help
Have you tested VLC 2.0.0 ones? They are MUCH better stability wise.

Re: axVLCplugin C# IDE shutdown

Posted: 07 Feb 2012 01:30
by radnix
Thanks for the suggestion.
No I haven't, where can I get that version?

Re: axVLCplugin C# IDE shutdown

Posted: 07 Feb 2012 16:48
by VLC_help

Re: axVLCplugin C# IDE shutdown

Posted: 24 Feb 2012 15:08
by radnix
I've tried several releases with the MSVS 2008 and 2010 IDE's on three separate PC's with the same IDE shutdown error. Any ideas or suggestions are welcome.

Re: axVLCplugin C# IDE shutdown

Posted: 24 Feb 2012 19:07
by VLC_help
So it also crashes with VLC 2.0.0 versions?

Re: axVLCplugin C# IDE shutdown

Posted: 25 Feb 2012 01:39
by radnix
6:00pm Oh, new release. I'll give it a try and report back. Thanks!

7:00pm : Dratz ! Sorry to say same results. IDE shutdown. Also tried cleaning the registry with CCleaner then reinstalling VLC 2.0.0. WinForm app using VLC Plugin as noted above.

Code posting:
project references :
AxInterop.AXVLC
Interop.AXVLC
x86

string movie = @"C:\Lab_2008\VLC_EmbeddedTest2\VLC_EmbeddedTest2\Movies\MISP.mpg";

private void button1_Click(object sender, EventArgs e)
{
try
{
if (File.Exists(movie) == false) { MessageBox.Show("Movie not there: " + movie); return; }
axVLCPlugin21.playlist.add(movie, null, null);// "Video1", null);

axVLCPlugin21.playlist.play();
}
catch (Exception e1) { MessageBox.Show("Error Play:" + e1.Message); }

}

private void button2_Click(object sender, EventArgs e)
{
try
{
axVLCPlugin21.playlist.togglePause();
}
catch (Exception e2) { MessageBox.Show("Error Pause:" + e2.Message); }

}

private void button3_Click(object sender, EventArgs e)
{
try
{
axVLCPlugin21.playlist.stop();
}
catch (Exception e3) { MessageBox.Show("Error Stop:" + e3.Message); }

}

It was a good try. I'll continue working on this and will post any success I may find, as always : open to any ideas / suggestions.

Latest release Warning :

Warning 1 Type library importer has encountered a duplicate type name: 'AXVLC.VLCPlaylistMode'. VLC_EmbeddedTest2
Warning 2 Type 'VLCPlaylistMode' is invalid and may only be partially converted. VLC_EmbeddedTest2

Re: axVLCplugin C# IDE shutdown

Posted: 26 Feb 2012 20:39
by radnix
Well, I've actually spent a lot of time testing axVLC for embedded activex in ms C# visual studio 2008 and 2010 across Windows XP and 7 with the same problems so I guess I'll have to throw in the towel on the axVLC.dll

Has anyone had any success with other embedded video display activex controls that might be similiar to VLC ? How does MPlayer match up ? Is it a possibility ?

Re: axVLCplugin C# IDE shutdown

Posted: 28 Feb 2012 01:15
by radnix
Just a side thought : Windows Vista and Windows 7 have what's called DEP : Data Execution Prevention.

I see this causing crashes with older ActiveX controls that give the error "attampted to read or write protected memory".

I wonder if this DEP stuff is a clue. :wink:

Re: axVLCplugin C# IDE shutdown

Posted: 22 Jan 2013 19:36
by radnix
This is an old post but I may have found a potential solution. I'm testing this now but wanted to post in case I forgot too or if anyone else wanted to try it out:
To fix: click start, type "cmd" into the search box, right click "cmd.exe" in the search results, select "run as admin",
then run this command:
regsvr32 "C:\Program Files (x86)\Internet Explorer\ieproxy.dll"