hukmac 5 Posted August 14 (edited) Hello! 🙂  I'm working in Delphi 12.1 CE (patch 1) @Win10 22H2. For many weeks Delphi IDE was running fine, but today it sudenly started showing message "Debugger Assertion Failure "" in pcntrlsrv.cpp at line 449" (in 64bit mode). I reverted changes in my project to the state in which this was not happening previously but this was not helpful. The exe of my app is being built properly and when run outside IDE it behaves correctly. But there is no possibility to run the code inside IDE with debugger (both in debug and in release mode IDE shows the above message). "Run without debugging" works fine, debugging in 32 bit mode also works fine.  Do you have any ideas what can be the reason for such behaviour and how to make the IDE/debugger to work properly in 64 bit mode again ? Restart of IDE, switching target, release/debug modes, erasing all dcus and restarting OS was not helpful.  Remark: I have found that similar problems were reported in the past but I found nothing about my failure (https://martinvirgil.wordpress.com/2012/09/05/delphi-assertion-failure-using-windows-7-64bit/)  Edited August 14 by hukmac Share this post Link to post
hukmac 5 Posted August 14 (edited) Update: I have done additional check - created new project (one form, one button). Unfortunately behaviour is exactly as described above. So it is not related with the project. Any ideas how to fix it? Have anyone had such an issue and maybe fixed it by reinstalling IDE? Edited August 14 by hukmac Share this post Link to post
Brian Evans 129 Posted August 14 (edited) Antivirus / security software can mess up debugging. Excluding the IDE (bds.exe) sometimes helps with odd errors that seem to start happening without changes in code or the IDE. Edited August 14 by Brian Evans Share this post Link to post
hukmac 5 Posted August 14 (edited) Thank you for the idea. No antivirus/security in the system except the Win built-in one. But I will investigate it.  Update: Some Win Defender rules were related to the Embarcadero Debugger Kernel (pointing to: \embarcadero\studio\23.0\bin\dbkw64_29_0.exe). I set those rules to allow all activity and additionally added new rules for this program to allow all connections. Unfortunately, this didn’t solve the problem. Other things that didn't help: - excluding \Embarcadero\Studio\23.0\ dir from real time protection, - switching off the Win Defender completely, - memory integrity protection/ core isolation setting set to off, - running IDE with Admin priviledges.  Additionally, in the Event Viewer the following entry can be seen at the time of unsuccessful run of debugger in 64bit mode: Faulting application name: dbkw64_29_0.exe, version: 290.2109.10.30909, timestamp: 0x62896680 Faulting module name: KERNELBASE.dll, version: 10.0.19041.6157, timestamp: 0x817d6404 Exception code: 0x0000192f Fault offset: 0x0000000000025369 Faulting process ID: 0x33e4 Faulting application start time: 0x01dc0dee21c41406 Faulting application path: C:\Program Files (x86)\Embarcadero\Studio\23.0\bin\dbkw64_29_0.exe Faulting module path: C:\Windows\System32\KERNELBASE.dll The problem appeared just before or just after (I'm not 100% sure) the installation of this Win update: https://support.microsoft.com/pl-pl/topic/12-sierpnia-2025-r-kb5063709-kompilacje-systemu-operacyjnego-19044-6216-i-19045-6216-96d99cf6-f8b5-4798-9892-4e3eb8f11548  Success 🙂 Uninstalling this kb5063709 system update fixed the problem (OS restart required) - now 64 bit debugger of Delphi 12.1 CE works fine. I hope this will be helpful to someone. 🙂  Related debugger app crash report is attached. report.wer Edited August 15 by hukmac Share this post Link to post