View Single Post
Old 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 is offline   Reply With Quote