> I have created a .net assembly that I can call to do some
> processing on files. I have a test c# application which I
> have used to prove that the assembly work correctly. The
> assembly has a hidden form which contains the quicktime object.
>
> I am now trying to call the assembly from an aspx page, so
> that I can kick off the process just calling a url. ASP.NET
> now gives this error:
>
> ActiveX control '......long number....' cannot be
> instantiated because the current thread is not in a
> single-threaded apartment.
>
> I know what apartments are, but I am not sure how I get around this?
You can try making a free-threaded ActiveX control (or WinForm control - see
class attribute to set appartment) and instantiate inside it the Apple
control in some inner single-threaded appartment and make sure you serialize
all calls to it
----------------
George Birbilis (email@hidden)
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Roboticshttp://www.mech.upatras.gr/~robgroup
_____
avast! Antivirus <http://www.avast.com> : Outbound message clean.
Virus Database (VPS): 0644-0, 30/10/2006
Tested on: 30/10/2006 10:33:18 ??
avast! - copyright (c) 1988-2006 ALWIL Software.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden