...can be made. Ensure that your Main function has STAThreadAttribute...
异常“ThreadStateException: Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it.” 前言:做项目的时候在线程调用的方法内部出现了如下异常: 百度翻译如下: 解决办法如下:设置线程单元状态为STA ...