Page 1 of 1

Warning using Threads

Posted: Wed May 19, 2010 12:53 pm
by rj-nora
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?

Thanks

Re: Warning using Threads

Posted: Wed May 19, 2010 1:50 pm
by chrisgeorge
Hi,

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