can I use [STAThread] for Main in windows service , does this make any problem ?
Asked
Active
Viewed 3,320 times
1 Answers
0
You can but it may not work as intended and can cause problems.
The best way to work around this seems to be by starting a new Thread and setting its ApartmentState to STA
Have a read of this post for more info: