Warning using Threads : General Questions

Warning using Threads

Ask general questions here.

Warning using Threads

Postby rj-nora » Wed May 19, 2010 1: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?

Thanks
rj-nora
 
Posts: 38
Joined: Thu Mar 11, 2010 4:56 pm

Re: Warning using Threads

Postby chrisgeorge » Wed May 19, 2010 2:50 pm

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
Chris George
Test Engineer

Red Gate Software Ltd
Cambridge
chrisgeorge
 
Posts: 49
Joined: Thu Aug 20, 2009 12:28 pm


Return to General Questions

Who is online

Users browsing this forum: No registered users and 0 guests