Groups | Blog | Home
all groups > macromedia players flash > february 2006 >

macromedia players flash : Flash8.ocx does not work in VS2005 C#


steve1960
2/4/2006 5:55:08 PM
Title: Flash8.ocx does not work in VS2005 C#
Product Versions:
MS .NET Framework Version 2.0.50727
MSVS2005 Version 8.0.50727.42
Macromedia Flash Player 8.0 r22 8.0.22.0

Definitions: FlashObj axShockwaveFlashObjects (flash8.ocx)
Visual Studio Version: vs2003, vs2005
Language: C#

This FlashObj works perfectly in vs2003

Fact/Symptoms

Fail 1

1. I put the FlashObj on the Toolbox using "Choose Items"
2. With a new windows app I attempt to place the FlashObj on the form
3. I recieve an MSVS error: Failed to import the ActiveX control. Please
ensure it is properly registered.

Fail 2

1. I open a vs2003 c# app in vs2005 that already has the FlashObj on a form.
This app runs good in vs2003.
2. After going thru the vs2005 conversion wizard
2. I can place another FlashObj on the form with no error.
3. Upon compilation I recieve an msvs error:

Title: ThreadStateException was unhandled

ActiveX control 'd27cdb6e-ae6d-11cf-96b8-444553540000' cannot be instantiated
because the current thread is not in a single-threaded apartment.

My Comments:

I've started to read about MTA, STA, apartment model and threads in general.
I must admit that I've never needed to understand these concepts, even though
I've been programming with VB for over 15 years.

Questions:

Is this error easily correctable?

Is it correctable in any way?

Without finger pointing, is this more of a Microsoft issue or should it be
Macromedia/Adobe? Further, this ocx is a COM component, because I'm still
coding mainly in VB6.0 with my first vs2003 app coming along, I never needed to
understand the differences between COM and .NET.

I really would like to convert/finish this app with vs2005, Do you think I
should just go back to vs2003?




flashkid
3/2/2006 6:53:04 PM
Try this:
AddThis Social Bookmark Button