A first chance exception of type 'System.Runtime.InteropServ

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
digizar
Blank Cone
Blank Cone
Posts: 19
Joined: 09 Oct 2006 14:09
VLC version: 0.8.2
Operating System: win, linux
Location: moved from NL to Germany, to Bad-Soden-Salmuenster, Spessart
Contact:

A first chance exception of type 'System.Runtime.InteropServ

Postby digizar » 21 Dec 2006 00:02

A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in System.Windows.Forms.dll


Lads & Gents,

Environment: Xp / VisualStudio 2005 / VideoLAN 0.8.6 (newest, own build from source code)
(it might have been the case with 0.8.5, too).

:arrow: We encounter the problem in a simple stripped dowm 'Window-form' application (sample for tracing that bug.
A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in System.Windows.Forms.dll

That happens in the auto generated line with
''cli::safe_cast<System....''
...snip
this->Name = L"Form1";
this->Text = L"Form1";
this->Load += gcnew System::EventHandler(this, &Form1::Form1_Load);
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->axVLCPlugin1))->EndInit();
this->ResumeLayout(false);
...snap

:arrow: Wie also see two pieces in the studio´s tool.general chapter 'Choose items' as COM Components
VideoLAN VLC ActiveX Plugin v.1
VideoLAN VLC ActiveX Plugin v.2
same name, same location, same date.
It does not matter what we choose to implement, v1, v2, or both.
The objects appear correctly, but on start up, it gives that mentioned trouble.

:?: Any (simple?) proposal / solution on hand ? Would be a great favour.
Many regards from The Netherlands - digi
and btw, did someone tell you, that xmas is coming up soon?
Since 1962 in IT-Business -with the big BLUE IBMs-
(I am 67 now, still in business better than ever),
12 years experience of MS-V-Studio,
A few handful of years experience in Línux/Unix.
Lots of years of experience in microcontrollers.
See the personal website.

Tappen
Cone that earned his stripes
Cone that earned his stripes
Posts: 150
Joined: 30 Oct 2006 07:55

Postby Tappen » 21 Dec 2006 01:53

Do you have AxInterop.AXVLC.dll and Interop.AXVLC.dll in your output directory? Try deleting them and forcing VS 2005 to re-create them for you from the latest 0.8.6 ActiveX dll. And of course why not just install and try the pre-built binaries so you can tell if the problem is with your own build?

Be sure to register axvlc.dll by hand in either case before anything.

digizar
Blank Cone
Blank Cone
Posts: 19
Joined: 09 Oct 2006 14:09
VLC version: 0.8.2
Operating System: win, linux
Location: moved from NL to Germany, to Bad-Soden-Salmuenster, Spessart
Contact:

Postby digizar » 21 Dec 2006 16:25

:arrow: No further action required,...
...we live with that 'misfortune' so far.
It does not actually crash our application, though it looks pretty annoying.
When that case is solved, I will report it here.
Thank you, Tappen, whish you hell of a nice Christmas.
Do you have AxInterop.AXVLC.dll and Interop.AXVLC.dll in your output directory? Try deleting them and forcing VS 2005 to re-create them for you from the latest 0.8.6 ActiveX dll.
:arrow: Well, I did that when the strippd down project was created completey from scratch.

And of course why not just install and try the pre-built binaries so you can tell if the problem is with your own build?
:arrow: Yes, sure, I did that, too.

Be sure to register axvlc.dll by hand in either case before anything.
:arrow: This I did not do yet, will keep an eye on that.
Since 1962 in IT-Business -with the big BLUE IBMs-
(I am 67 now, still in business better than ever),
12 years experience of MS-V-Studio,
A few handful of years experience in Línux/Unix.
Lots of years of experience in microcontrollers.
See the personal website.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Carlos1959 and 13 guests