Hello,
I'm creating a Windows client that requires basic telephony functions. Video support is mandatory.
In this application, MainWindow is used for parameter configuration and SDK initialization. In another window (CallServiceWin) the call events and video rendering are displayed.
The problem I'm having is that after 3 or more video calls the following error shows up during a call:
System.InvalidOperationException occurred
HResult=0x80131509
Message=The calling thread cannot access this object because a different thread owns it.
Source=WindowsBase
StackTrace:
at System.Windows.Threading.Dispatcher.VerifyAccess()
at System.Windows.Freezable.WritePreamble()
at System.Windows.Interop.D3DImage.Lock()
at Avaya.ClientServices.Media.VideoRenderer2.!VideoRenderer2()
at Avaya.ClientServices.Media.VideoRenderer2.Dispose(Boolean A_0)
at Avaya.ClientServices.Media.VideoRenderer2.Finalize()
The following screenshot also displays the error:
How should I manage thread-safe video call events and UI handling? Is there any set of best practices or recomendations regarding thread-safe
CallManager event processing?
Thanks in advance.