RDP connection disconnects when you enable Sound

Let’s take a look at a typical scenario where you can encounter this RDP connection memory leak issue. In a remote desktop connection (mstsc.exe) to a Windows 10 computer, the connection leaks memory when you play any sound. This includes simple beep tones that are generated on the PC speaker. In this situation, mstsc.exe may disconnect suddenly and prompt you to reconnect to the remote computer. MSTSC.exe creates connections to Remote Desktop Session Host servers or other remote computers, edits an existing Remote Desktop Connection (.rdp) configuration file, and migrates legacy connection files that were created with Client Connection Manager to new .rdp connection files.

RDP connection (mstsc.exe) memory issues when sound plays

This issue occurs because the Remote Desktop ActiveX control, Mstscax.dll, allocates memory for the sound to be played on the client computer, but the memory is never released. This out-of-memory condition causes the remote desktop connection to disconnect and restart itself. To work around this memory leak issue when sound plays during the RDP connection on Windows 10, reconnect to the remote computer. Bear in mind that because this is a new session, you must re-enter your RDP credentials. Bonus information Remote Desktop Connection is built into Windows but also exists as a Windows 10 Universal app in the Microsoft Store. If you want to access and control a computer from a non-Windows device, Microsoft’s RDC app is available for Mac, iOS, and Android.