在我的项目中,我有文本框,当事件触发时,_rtpAudioChannel_ChannelStateChanged
我得到了这个异常调用线程无法访问这个对象,因为另一个线程拥有它
void _rtpAudioChannel_ChannelStateChanged(object sender, RtpStateChangedEventArgs<RtpChannelState> e)
{
AddNewState("some text here");
}
public void AddNewState(string state)
{
StatTextBox.Text = state + "\n" + StatTextBox.Text;
}