Thread
:
NeroCOM, C#, QueryInterface/casting failing and COM apartment threading models etc.
View Single Post
19-06-2005
#
3
(
permalink
)
Ianier
New on Forum
Join Date: Jun 2005
Posts: 3
Re: NeroCOM, C#, QueryInterface/casting failing and COM apartment threading models etc.
Hi,
In your separate thread code, add the following code:
System.Threading.Thread.CurrentThread.ApartmentState = System.Threading.ApartmentState.STA;
This will switch your thread to STA.
Regards,
Ianier Munoz
http://www.chronotron.com
Ianier
View Public Profile
Find More Posts by Ianier