# Apps hanging on RDP disconnect

**URL:** <https://forum.xojo.com/t/apps-hanging-on-rdp-disconnect/83856>\
**Category:** Windows\
**Created:** [January 9, 2025, 11:05pm UTC](https://forum.xojo.com/t/apps-hanging-on-rdp-disconnect/83856 "2025-01-09T23:05:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bill\_Sanders](https://forum.xojo.com/letter_avatar_proxy/v4/letter/b/77aa72/32.png) [@Bill\_Sanders](https://forum.xojo.com/u/Bill_Sanders)\
**Post date:** [January 9, 2025, 11:05pm UTC](https://forum.xojo.com/t/apps-hanging-on-rdp-disconnect/83856/1 "2025-01-09T23:05:07Z")

</div>

I have an issue that started around July 1st.

I’ve written several utility apps for work. They all live on a network share and are run on a server that I access via RDP. They all worked fine until July 1st. Since then, if I close RDP with the login session still running, they crash. Previous to July, my apps were happily still running when I RDP’d back in.

This is no doubt a Windows change, but I can’t figure out why. Any guesses?

Windows Server 2019 (patched monthly, including ‘other MS updates’)

Xojo RBProjectVersion=2024.021

Event 1000  
Faulting application name: StaffAccountTool.exe, version: 1.0.0.0, time stamp: 0x660ca2b5  
Faulting module name: VCRUNTIME140.dll, version: 14.30.30704.0, time stamp: 0x615a9224  
Exception code: 0xc0000005  
Fault offset: 0x000038dc  
Faulting process id: 0x1d50  
Faulting application start time: 0x01dacbcb36733be0

---

<div class="post-metadata">

**Author:** ![Wayne\_Golding](https://forum.xojo.com/user_avatar/forum.xojo.com/wayne_golding/32/165_2.png) [@Wayne\_Golding](https://forum.xojo.com/u/Wayne_Golding)\
**Post date:** [January 10, 2025, 2:42pm UTC](https://forum.xojo.com/t/apps-hanging-on-rdp-disconnect/83856/2 "2025-01-10T14:42:35Z")

</div>

Looks like you’re losing access to some resource when disconnecting. Have you implemented App.Unhandled event handler? You could attempt to write the stack & error details to a text file which may give you clues as to which resource you no longer have access to.

---

<div class="post-metadata">

**Author:** ![Greg\_O](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o/32/22785_2.png) [@Greg\_O](https://forum.xojo.com/u/Greg_O)\
**Post date:** [January 10, 2025, 3:42pm UTC](https://forum.xojo.com/t/apps-hanging-on-rdp-disconnect/83856/3 "2025-01-10T15:42:22Z")

</div>

It could be this:

> If it’s an Active Directory environment, check to make sure the option `End a disconnected session` isn’t checked under properties for the affected user in ADUC.

---

<div class="post-metadata">

**Author:** ![Bill\_Sanders](https://forum.xojo.com/letter_avatar_proxy/v4/letter/b/77aa72/32.png) [@Bill\_Sanders](https://forum.xojo.com/u/Bill_Sanders)\
**Post date:** [February 6, 2025, 7:24pm UTC](https://forum.xojo.com/t/apps-hanging-on-rdp-disconnect/83856/4 "2025-02-06T19:24:53Z")

</div>

This issue resolved itself. It’s likely an update to some MS product resolved it.
