我的C#应用程序是这样的,后台工作人员正在用来等待一些传输数据的确认。这里是一些伪代码演示我想要做的事: UI_thread
{
TransmitData()
{
// load data for tx
// fire off TX background worker
}
RxSerialData()
{
我收到了一个无意义的错误。 Cross-thread operation not valid: Control 'buttonOpenFile' accessed from a thread other than the thread it was created on. 在我的应用程序,用户界面线程打完backgroundWorker1,当断backgroundWorker2几乎完全火灾和等待它