Apps hanging on RDP disconnect

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

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.

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.