# Windows Zoom SDK crashes in Waiting Room

**URL:** <https://devforum.zoom.us/t/windows-zoom-sdk-crashes-in-waiting-room/34270>\
**Category:** Windows\
**Created:** [October 26, 2020, 8:20am UTC](https://devforum.zoom.us/t/windows-zoom-sdk-crashes-in-waiting-room/34270 "2020-10-26T08:20:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sergey\_ikol](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@sergey\_ikol](https://devforum.zoom.us/u/sergey_ikol)\
**Post date:** [October 26, 2020, 8:20am UTC](https://devforum.zoom.us/t/windows-zoom-sdk-crashes-in-waiting-room/34270/1 "2020-10-26T08:20:31Z")

</div>

**Description**  
From our observations, Windows Zoom SDK crashes (crashes) while freeing memory.  
After the client got into the waiting room and tried to free memory, he flies out.  
We use Custom UI.

**Which version?**  
SDK Version = 5.0.1 (24433.0616)

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

1. Init, Auth sdk
2. Join an existing meeting.
3. Create two (or more) ICustomizedVideoContainer
4. ICustomizedVideoContainer -\> Show (as it turned out, without calling this function, we cannot create IVideoRenderElement)
5. For each ICustomizedVideoContainer create two IVideoRenderElement
6. IVideoRenderElement -\> SetPos(…)
7. IVideoRenderElement -\> Subscribe(…)
8. IVideoRenderElement -\> Show()
9. Put this client in Waiting Room
10. When I received messages (event) MEETING\_STATUS\_IN\_WAITING\_ROOM, I try free memory  
9.1. IVideoRenderElement -\> Unsubscribe(…) **(Sometimes crashes at this place)**  
9.2. ICustomizedVideoContainer -\> DestroyVideoElement (IVideoRenderElement ) **(Sometimes crashes at this place)**  
9.3. CustomizedUIMgr -\> DestroyVideoContainer (ICustomizedVideoContainer) **(Sometimes crashes at this place)**

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [October 30, 2020, 7:11am UTC](https://devforum.zoom.us/t/windows-zoom-sdk-crashes-in-waiting-room/34270/2 "2020-10-30T07:11:10Z")

</div>

Hi @sergey_ikol,

Thank you very much for the post. Could you provide the SDK log and a dump file for this crash so that we could further investigate?

Thanks!

---

<div class="post-metadata">

**Author:** ![sergey\_ikol](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@sergey\_ikol](https://devforum.zoom.us/u/sergey_ikol)\
**Post date:** [November 2, 2020, 8:17am UTC](https://devforum.zoom.us/t/windows-zoom-sdk-crashes-in-waiting-room/34270/4 "2020-11-02T08:17:37Z")

</div>

Hi @carson.zoom,

Sorry, but the dump-file is not being generated during this error.

From this link you can download sdk log files.

> **[FEX.NET](https://fex.net/uk/s/y9dmct9)**

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [November 7, 2020, 8:38am UTC](https://devforum.zoom.us/t/windows-zoom-sdk-crashes-in-waiting-room/34270/5 "2020-11-07T08:38:51Z")

</div>

Hi @sergey_ikol,

Thank you very much for providing the log. Let me forward this to the engineering team and see if they could identify the root cause. Will get back to you shortly.

Thanks!

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [November 13, 2020, 7:23am UTC](https://devforum.zoom.us/t/windows-zoom-sdk-crashes-in-waiting-room/34270/6 "2020-11-13T07:23:49Z")

</div>

Hi @sergey_ikol,

Thanks for the reply and for providing the log. So when the attendee has been assigned to the waiting room, before you received the MEETING\_STATUS\_IN\_WAITING\_ROOM status from onMeetingStatusChanged, the callback onVideoRenderElementDestroyed will be triggered, and please free the memory and destroy the video element and container here. So when you have received the status MEETING\_STATUS\_IN\_WAITING\_ROOM, the video render element has already been destroyed internally, so when you try to access it at that time, it will cause a crash.

Please refer to the implementation of the callback onVideoRenderElementDestroyed in the demo app and adjust the time to clean the memory could avoid this issue.

Hope this helps. Thank you!
