System.InvalidOperationException异常

“System.InvalidOperationException”类型的第一次机会异常在 System.Windows.Forms.dll 中发生


https://blog.csdn.net/weixin_39946931/article/details/90721706?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase

 

Thread objThread = new Thread(new ThreadStart(delegate
{
Control.CheckForIllegalCrossThreadCalls = false;//添加这一句即可
youfunc();
}));
objThread.Start();
————————————————
版权声明:本文为CSDN博主「suddle」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weixin_39946931/article/details/90721706

上一篇:auth.log总是出现CRON[16570]: pam_unix(cron:session): session opened for user root 之类的信息


下一篇:flink CDH