Warning using Threads

Ask general questions here.
Posts: 38
Joined: Thu Mar 11, 2010 3:56 pm

Warning using Threads

Post by rj-nora » Wed May 19, 2010 12:53 pm

Hello at this moment i'm using threads at Program.cs when i run the test The report shows a warning message :
The apartment state of the current thread is not set to STA. Please make sure that all threads accessing Ranorex methods have their apartment state set to STA.

What is that? How can i solve?


Posts: 49
Joined: Thu Aug 20, 2009 11:28 am

Re: Warning using Threads

Post by chrisgeorge » Wed May 19, 2010 1:50 pm


If you do a search on the forums for STA you will find a few postings with the solutions you need... :-)

If you are using Visual Studio you can set the project to use the STA apartment state.

Chris George
Test Engineer

Red Gate Software Ltd