# Meeting automatically closes after starting when sharing the desktop directly

**URL:** <https://devforum.zoom.us/t/meeting-automatically-closes-after-starting-when-sharing-the-desktop-directly/119771>\
**Category:** Windows\
**Created:** [October 24, 2024, 2:08pm UTC](https://devforum.zoom.us/t/meeting-automatically-closes-after-starting-when-sharing-the-desktop-directly/119771 "2024-10-24T14:08:30Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![smlznnl](https://avatars.discourse-cdn.com/v4/letter/s/f19dbf/32.png) [@smlznnl](https://devforum.zoom.us/u/smlznnl)\
**Post date:** [October 24, 2024, 2:08pm UTC](https://devforum.zoom.us/t/meeting-automatically-closes-after-starting-when-sharing-the-desktop-directly/119771/1 "2024-10-24T14:08:30Z")

</div>

A strange problem happens in a windows x64 application that starts a meeting with desktop sharing always enabled.

With the latest windows meeting sdk versions, when sharing the desktop automatically at the beginning of the meeting (by setting the isDirectShareDesktop property in the StartParam4WithoutLogin structure to true) the meeting starts with no error but it immediately closes.

All the sdk calls made by the application return with no errors, the meeting starts as usual but it immediately terminates.  
The meeting status becomes MEETING\_STATUS\_INMEETING as it should but then it becomes MEETING\_STATUS\_DISCONNECTING in less than 2 seconds without any user intervention.  
The meeting is started using sdk user type SDK\_UT\_WITHOUT\_LOGIN together with zoom user type ZoomUserType\_APIUSER and specifying a ZAK token obtained through the web api.

When starting a meeting without desktop sharing (isDirectShareDesktop false) there aren’t any problems, everything works.

The versions that have been tested and have the problem are Windows Meeting SDK version v5.17.11.34885 and the latest v6.2.3.47557  
Windows Meeting SDK v5.17.5.31085 works with no problems.

The operating system is Windows 10 Pro 22H2 19045.5011

The sdk demo application does not support the direct share to desktop feature (isDirectShareDesktop always false) so it is not possible to do any testing with it.

The following is an extract from the log of the application, the 20 seconds sleeps are added on purpose to allow easier debugging and during the second one at 13:54:48 the sdk is showing the “Select a window or an application that you want to share” window but at the end of the sleep it closes automaticlly without any user intervention.

```auto
24/10/2024 13:54:20 authenticating sdk at 24/10/2024 13:54:20
onProxyDetectComplete called
onAuthenticationReturn called 0
24/10/2024 13:54:23 authenticated 0
onLoginReturnWithReason called
24/10/2024 13:54:23 sdk login
24/10/2024 13:54:23 sdk start meeting
24/10/2024 13:54:24 sharing screen
24/10/2024 13:54:24 IMeetingService::Start ok
24/10/2024 13:54:24 sleeping 20 seconds
24/10/2024 13:54:44 sleep done
onMeetingStatusChanged called 1 0
24/10/2024 13:54:44 meeting status changed to MEETING_STATUS_CONNECTING
onMeetingParameterNotification called 1 87645293438
onAllowParticipantsRenameNotification called
onAllowParticipantsUnmuteSelfNotification called
onAllowParticipantsRenameNotification called
onAllowParticipantsUnmuteSelfNotification called
onAllowParticipantsShareWhiteBoardNotification called
onUserJoin called
onCoHostChangeNotification called
onMeetingStatusChanged called 3 0
24/10/2024 13:54:47 meeting status changed to MEETING_STATUS_INMEETING
24/10/2024 13:54:47 meeting started 0
onHostChangeNotification called
onSharingStatus called
24/10/2024 13:54:48 sharing status 0 user id 16778240
onSharingStatus called
24/10/2024 13:54:48 sharing status 1 user id 16778240
onMeetingStatusChanged called 4 0
24/10/2024 13:54:48 meeting status changed to MEETING_STATUS_DISCONNECTING
24/10/2024 13:54:48 sleeping 20 seconds
24/10/2024 13:55:08 sleep done
24/10/2024 13:55:08 connected message
onMeetingStatusChanged called 7 0
24/10/2024 13:55:09 meeting status changed to MEETING_STATUS_ENDED

```

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [October 31, 2024, 6:25pm UTC](https://devforum.zoom.us/t/meeting-automatically-closes-after-starting-when-sharing-the-desktop-directly/119771/2 "2024-10-31T18:25:20Z")

</div>

Hi @smlznnl  
Thanks for reaching out to us !  
Are you still having this issue on your end?

---

<div class="post-metadata">

**Author:** ![smlznnl](https://avatars.discourse-cdn.com/v4/letter/s/f19dbf/32.png) [@smlznnl](https://devforum.zoom.us/u/smlznnl)\
**Post date:** [November 4, 2024, 11:34am UTC](https://devforum.zoom.us/t/meeting-automatically-closes-after-starting-when-sharing-the-desktop-directly/119771/3 "2024-11-04T11:34:13Z")

</div>

Yes, also with windows meeting sdk version 6.2.5.48922

---

<div class="post-metadata">

**Author:** ![smlznnl](https://avatars.discourse-cdn.com/v4/letter/s/f19dbf/32.png) [@smlznnl](https://devforum.zoom.us/u/smlznnl)\
**Post date:** [November 26, 2024, 3:31pm UTC](https://devforum.zoom.us/t/meeting-automatically-closes-after-starting-when-sharing-the-desktop-directly/119771/4 "2024-11-26T15:31:14Z")

</div>

Still happens with windows meeting sdk version v6.2.10.50586

---

<div class="post-metadata">

**Author:** ![smlznnl](https://avatars.discourse-cdn.com/v4/letter/s/f19dbf/32.png) [@smlznnl](https://devforum.zoom.us/u/smlznnl)\
**Post date:** [December 11, 2024, 3:23pm UTC](https://devforum.zoom.us/t/meeting-automatically-closes-after-starting-when-sharing-the-desktop-directly/119771/5 "2024-12-11T15:23:21Z")

</div>

Still happens with windows meeting sdk version v6.2.11.51440

---

<div class="post-metadata">

**Author:** ![smlznnl](https://avatars.discourse-cdn.com/v4/letter/s/f19dbf/32.png) [@smlznnl](https://devforum.zoom.us/u/smlznnl)\
**Post date:** [January 10, 2025, 1:53pm UTC](https://devforum.zoom.us/t/meeting-automatically-closes-after-starting-when-sharing-the-desktop-directly/119771/6 "2025-01-10T13:53:25Z")

</div>

Finally it has been resolved in version 6.3.5.55327

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [January 27, 2025, 9:14pm UTC](https://devforum.zoom.us/t/meeting-automatically-closes-after-starting-when-sharing-the-desktop-directly/119771/7 "2025-01-27T21:14:53Z")

</div>

Thank you for confiming this and sorry for not catching your update before. Make sure to tag me in future threads so I can get a notification

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [February 27, 2025, 7:15am UTC](https://devforum.zoom.us/t/meeting-automatically-closes-after-starting-when-sharing-the-desktop-directly/119771/8 "2025-02-27T07:15:50Z")

</div>

Closed on February 27, 2025, 7:15am UTC

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