Sunny
7/12/2004 8:11:00 PM
The only way I can think of is to create a new thread, mark it as STA
and make it call the COM. Actually I had to do this once :)
All remoting calls are invoked on a ThreadPool threads, which are MTA
and this can not be changed.
Sunny
In article <51992642.0407120127.142106f@posting.google.com>,
js@rapidis.com says...
> I have some problems when I try to call some old COM components from a
> remote :NET object. I am pretty sure that the problem is caused by the
> fact that the COMponents are single threaded, since apartment threaded
> COMponents works just fines.
>
> Is there a workaround that would enable me to included single threaded
> COMomponents in my remote .NET application? I can''t just rebuild them
> as apartment threaded since I don''t have the code.
>
> Regards,
> Jakob Skriver
>