【发布时间】:2012-11-11 22:29:51
【问题描述】:
在我的项目中,我有文本框,当事件触发 _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;
}
【问题讨论】: