DisconnectedContext causes crash

Application crash due to the below error, reproduced in a modified version of the demo application.
The Demo application is modified for expediency with a pre-filled auth token and user login.
The error occurs intermittently, on my system is somewhere less than 1 in 15 attempts to get it to reproduce.

Using LoginParam4Email to login.
Am starting a meeting using the following:
StartParam userType=SDK_UT_NORMALUSER
and NormalUserStart = StartParam4NormalUser {isVideoOff =true, isAudioOff = false, isDirectShareDesktop = false}

Error occurs immediately after using the End Meeting For All button.
I have also added the stack track that ends up in Event Viewer.

Which Desktop Client SDK version?
C# Wrapper 5.5.12511.0422

To Reproduce(If applicable)
Steps to reproduce the behavior:

  1. Rundemo Exe
  2. Authenticate
  3. Login
  4. Start meeting
  5. Without any other interaction with Zoom Window , End → End Meeting For All.
  6. Repeat steps 5,6 until application crashes.

If applicable, add screenshots to help explain your problem.

Device (please complete the following information):
Windows 10 Pro

Additional context

Error seen from Visual Studio
Managed Debugging Assistant ‘DisconnectedContext’ : ‘Transition into COM context 0x14e7e28 for this RuntimeCallableWrapper failed with the following error: The object invoked has disconnected from its clients. (Exception from HRESULT: 0x80010108 (RPC_E_DISCONNECTED)). This is typically because the COM context 0x14e7e28 where this RuntimeCallableWrapper was created has been disconnected or it is busy doing something else and cannot process the context transition. No proxy will be used to service the request on the COM component and calls will be made to the COM component directly. This may cause corruption or data loss. To avoid this problem, please ensure that all COM contexts/apartments/threads stay alive and are available for context transition, until the application is completely done with the RuntimeCallableWrappers that represents COM components that live inside them.’

Second Error in Event Viewer
Faulting application name: zoom_sdk_demo.exe, version:, time stamp: 0x610c66b8
Faulting module name: KERNELBASE.dll, version: 10.0.19041.1151, time stamp: 0x5da51925
Exception code: 0xe0434352
Fault offset: 0x0012b512
Faulting process id: 0x12e5c
Faulting application start time: 0x01d78a499d6f89d2
Faulting application path: C:\Users\User\Downloads\zoom-c-sharp-wrapper-5.5.12511.0422\zoom-c-sharp-wrapper-5.5.12511.0422\bin\zoom_sdk_demo.exe
Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll
Report Id: d69559ee-29c8-4488-b0c6-1714a25158f1
Faulting package full name:
Faulting package-relative application ID:

First Error in Event Viewer
Application: zoom_sdk_demo.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.InvalidCastException
at System.StubHelpers.InterfaceMarshaler.ConvertToNative(System.Object, IntPtr, IntPtr, Int32)
at MS.Win32.UnsafeNativeMethods+ITfThreadMgr.SetFocus(ITfDocumentMgr)
at System.Windows.Input.InputMethod.EnableOrDisableInputMethod(Boolean)
at System.Windows.Input.TextServicesManager.Focus(System.Windows.DependencyObject)
at System.Windows.Input.KeyboardDevice.ChangeFocus(System.Windows.DependencyObject, Int32)
at System.Windows.Input.KeyboardDevice.TryChangeFocus(System.Windows.DependencyObject, System.Windows.Input.IKeyboardInputProvider, Boolean, Boolean, Boolean)
at System.Windows.Input.KeyboardDevice.Focus(System.Windows.DependencyObject, Boolean, Boolean, Boolean)
at System.Windows.Input.KeyboardDevice.Focus(System.Windows.IInputElement)
at System.Windows.Interop.HwndKeyboardInputProvider.OnSetFocus(IntPtr)
at System.Windows.Interop.HwndKeyboardInputProvider.FilterMessage(IntPtr, MS.Internal.Interop.WindowMessage, IntPtr, IntPtr, Boolean ByRef)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)

Hey @brandon1,

Thanks for using the dev forum!

Are you seeing this in the C++ demo app as well?


I don’t know about it reproducing with C++.
I haven’t set it up with the C++ SDK.

Hey @brandon1,

I understand. We do not provide much developer support for the C# wrapper as it is not actively maintained by Zoom.


Hi Michael, until we ramp up with a C++ developer to support us - can you please investigate on your end? We specifically purchased a zoom business license to get development support with the Zoom SDK and the Zoom C# wrapper, this is the first we have heard that you do not support it.


Hey @don_ucw,

It is difficult to investigate C# wrapper issues, as sometimes the issue is caused by something outside of the SDK itself. If you’d like, you can send me a dump file and your SDK logs to developersupport@zoom.us and I can forward them to the engineers. However, if the issue is with the wrapper itself, it would have to be modified locally on your end.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.