![patchforrad | Embarcadero RAD Studio Delphi C++Builder Blogs patchforrad](https://i0.wp.com/blogs.embarcadero.com/wp-content/uploads/2022/05/patchforrad-5263350-5553629.jpg?resize=1140%2C694&ssl=1)
A new patch (or hotfix) for RAD Studio 11.1 is now available. The patch addresses a problem that occurs when debugging Win32 apps on Windows 11, in which the IDE appears to freeze at times. When evaluating watches with side effects, opening the Threads view to switch threads, attaching to a process, and performing other common debugging actions, you may notice the freeze. The problem is caused by the time it takes to get the thread wait chain (GetThreadWaitChain()), which can take up to a minute. It is fixed by turning off the thread wait chain feature in the debugger.
The exact cause of the thread wait chain delay is unknown, but it appears to be related to a thread having a socket open, possibly while waiting for network IO to complete.
On both Windows 10 and Windows 11, thread wait chain information is disabled for Win32. If you need the feature, set DBK ENABLE WAITCHAIN=1 on a command prompt and run RAD Studio (alternatively, set that environment variable globally for Windows). Because the issue only affects Windows 11, you only need to install the patch on Windows 11.
Installation
You can download this in GetIt (our recommended technique; also it will show as available on the Welcome Page when you start the IDE) or install manually after downloading from my.embarcadero.com (the zip file contains a batch file installer.)
The RAD Studio 11.1 Welcome screen shows the ‘Patch available’ button. Click this to install patches, including this one.
Remote Debugging
Because this patches the debugger, you must also update PAServer on the remote machine if you use remote debugging. The patch installer replaces the PAServersetup paserver.exe file in (your RAD Studio install location), but you must copy it to the remote machine and install it. The patch readme contains complete instructions.
Interested in using Embarcadero’s IDE Software? It will help you Build Apps 5x Faster With One Codebase for Windows, Android, iOS, macOS, and Linux. Request a free trial here.
Design. Code. Compile. Deploy.
Start Free Trial Upgrade Today
Free Delphi Community Edition Free C++Builder Community Edition
Thats good news. It would be good to see if this makes better experience also in Windows 10. I typically experience a situation when debugger freezes several times per day. Mostly using C++ Builder XE8. When I try to break application (because application seems to be frozen and I want to see what is happening), IDE title bar displays text “Stopping” indefinitely. Don’t know if this resolves by itself after long time. Usually I don’t have patience to wait, I immediately start Task Manager and kill bds.exe. Seems that while debugging some parts of code this bug happens more often but nevertheless it is random in nature. Sometimes it happens in five minutes two or three times.
For reference, the issue report is https://quality.embarcadero.com/browse/RSP-37966
And what about Win64? My IDE freeze also most of the time when running a program via F9.
Do you have a QP report with debugger logs you can point me at, please? We’ll take a look. You can email me the QP number directly too: firstname dot lastname at embarcadero.com.
See here for info on logs: https://docwiki.embarcadero.com/RADStudio/Sydney/en/Enabling_logging_for_the_RAD_Studio_debuggers