google的时候,在*中得到个暂时解决的方法:
http://*.com/questions/2797677/contextswitchdeadlock-was-detected-error-in-c-sharp
由于我的程序是在 winform中的,默认情况是单线程的,在 Main中,我修改为 多线程形式(即[MTAThread].
google的时候,在*中得到个暂时解决的方法:
http://*.com/questions/2797677/contextswitchdeadlock-was-detected-error-in-c-sharp
由于我的程序是在 winform中的,默认情况是单线程的,在 Main中,我修改为 多线程形式(即[MTAThread].