Site icon Embarcadero RAD Studio, Delphi, & C++Builder Blogs

Windows 11 Win32 Debugging Patch for RAD Studio 11.1

patchforrad

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.

Exit mobile version