- 1

Is it this actually necessary?

[STAThread] Single Thread Apartment

3rd Dec 2017, 5:19 PM
Đ’Đ°Đ»Đ”Ń€ĐžŃ
Đ’Đ°Đ»Đ”Ń€ĐžŃ - avatar
1 Answer
+ 2
For Windows Forms applications, yes. There is a good explanation on the MSDN site: "STAThreadAttribute indicates that the COM threading model for the application is single-threaded apartment. This attribute must be present on the entry point of any application that uses Windows Forms; if it is omitted, the Windows components might not work correctly. If the attribute is not present, the application uses the multithreaded apartment model, which is not supported for Windows Forms."
4th Dec 2017, 10:14 AM
PĂ©ter GrĂłsz
PĂ©ter GrĂłsz - avatar