내 프로젝트에 텍스트 상자가 있고 이벤트가 발생했을 때 _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;
}
WPF 또는 WinForms? –
@AdamHouldsworth WPF – tito11