# Windows C++ SDK will randomly return ZoomVideoSDKErrors\_Wrong\_Usage for 2nd camera share

**URL:** <https://devforum.zoom.us/t/windows-c-sdk-will-randomly-return-zoomvideosdkerrors-wrong-usage-for-2nd-camera-share/91618>\
**Category:** Video SDK\
**Created:** [July 11, 2023, 12:51pm UTC](https://devforum.zoom.us/t/windows-c-sdk-will-randomly-return-zoomvideosdkerrors-wrong-usage-for-2nd-camera-share/91618 "2023-07-11T12:51:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jayson.reis](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jayson.reis/32/49172_2.png) [@jayson.reis](https://devforum.zoom.us/u/jayson.reis)\
**Post date:** [July 11, 2023, 12:51pm UTC](https://devforum.zoom.us/t/windows-c-sdk-will-randomly-return-zoomvideosdkerrors-wrong-usage-for-2nd-camera-share/91618/1 "2023-07-11T12:51:42Z")

</div>

**Video SDK Type and Version**  
video sdk for windows version 1.8.2.

**Description**  
Hi there, I am facing an issue where zoom sdk’s will randomly return wrong usage as error code when calling startShare2ndCamera always with the same deviceId.  
The code is always being compiled with msvc 2022

**Error?**  
You can find the SDK log here [Sign in to your account](https://audibene-my.sharepoint.com/:u:/g/personal/jayson_reis_audibene_de/EWpT86wTDc1IgKBcgtnB9LIBksh_K3_UHA7M-kG9Kx933Q?e=IvAegL)

**Troubleshooting Routes**  
_The troubleshooting attempt types you’ve already exhausted, including testing with the appropriate sample app (found on [Zoom · GitHub](https://github.com/zoom))._  
The code itself starts a new thread to initialize the video sdk, addListener and, in that thread, keeps on a loop of Get, Translate, and DispatchMessage  
From the main thread, it waits until zoom is initialized and is processing the message loop then, joins a session, wait to be joined, list the cameras, filter the first and second cameras, and when it tries to start the second camera (first one works ok), which uses the screen sharing, it will randomly return the ZoomVideoSDKErrors\_Wrong\_Usage mentioned

---

<div class="post-metadata">

**Author:** ![rehema.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rehema.zoom/32/40323_2.png) [@rehema.zoom](https://devforum.zoom.us/u/rehema.zoom)\
**Post date:** [July 17, 2023, 2:01pm UTC](https://devforum.zoom.us/t/windows-c-sdk-will-randomly-return-zoomvideosdkerrors-wrong-usage-for-2nd-camera-share/91618/2 "2023-07-17T14:01:00Z")

</div>

Hi @jayson.reis ,

Thank you for your post! I’m going to look into this error + the logs and share with my team to investigate what’s going on. I will reach back out when I have some more information.

Thanks,  
Rehema
