Page 1 of 1

VLC ActiveX based app crashes with VLC 1.1.x

Posted: 23 Sep 2010 23:06
by tcc
Hi,

I have an app that uses VLC ActiveX control that was built with vstudio 2008/C# and runs using VLC 1.0.3.

With VLC 1.1.4 installed, the app crashes (crash text below) and the build fails under vstudio.

1) Do I need to install the ActiveX control from VLC 1.1.4 into vstudio?
2) Are newer versions of the following files required? Is there a download link for them?

- AxInterop.AXVLC.dll
- Interop.AXVLC.dll

Regards,

Tcc

...crash text

Description:
Stopped working

Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: simp.exe
Problem Signature 02: 1.0.2.4
Problem Signature 03: 4bcbc279
Problem Signature 04: AxInterop.AXVLC
Problem Signature 05: 1.0.0.0
Problem Signature 06: 4b4a2e8a
Problem Signature 07: 4a
Problem Signature 08: 14
Problem Signature 09: System.InvalidCastException
OS Version: 6.1.7600.2.0.0.768.3
Locale ID: 1033
...

Re: VLC ActiveX based app crashes with VLC 1.1.x

Posted: 25 Sep 2010 16:29
by tcc

2) Are newer versions of the following files required? Is there a download link for them?

- AxInterop.AXVLC.dll
- Interop.AXVLC.dll
I remember now, these files are created by VStudio from the axvlc.dll file and are placed in the in the project output directory. So, possibly I should just delete the existing files and let vstudio recreate them from the 1.1.4 axvlc.dll file.

Re: VLC ActiveX based app crashes with VLC 1.1.x

Posted: 29 Sep 2010 20:40
by tcc
I have successfully rebuilt the app in vstudio using ActiveX v2 from VLC 1.1.4, but the app still crashes on WIn7 x64 with the same crash signature as in my original post.

Is anyone running VLC ActiveX control v2 on Windows 7 x64?

Regards,
Tim

Re: VLC ActiveX based app crashes with VLC 1.1.x

Posted: 12 Oct 2010 23:36
by alt236
Try changing the platform of your application to x86 instead of "Any CPU".

The setting can be found in your project properties, under "Compile".

Re: VLC ActiveX based app crashes with VLC 1.1.x

Posted: 15 Oct 2010 11:53
by Bebel
How have you recompile the activex from 1.1.4 lib?
I try to add it in toolbox manager in Visual Studio 2008, but axvlc.dll is not a COM component for microsoft...
Thanks for your help

Abel

Re: VLC ActiveX based app crashes with VLC 1.1.x

Posted: 10 Nov 2010 16:22
by tcc
Try changing the platform of your application to x86 instead of "Any CPU".

The setting can be found in your project properties, under "Compile".
Yes, this indeed does solve the problem. Thanks! I had tried this a while ago without success but that was do to some sloppiness on my part...
How have you recompile the activex from 1.1.4 lib?
I try to add it in toolbox manager in Visual Studio 2008, but axvlc.dll is not a COM component for microsoft...
Thanks for your help

Abel
If I recall correctly, this is how to add axVLC to vstudio
(1) delete the obj and bin subdirectories under your project. These will be recreated by vstdudio.
(2) add axVLC.dll as a Reference. This is done on the right side of vstudio in the Solution Explorer tree
(3) you should then be able to add axVLC control to the toolbox.