Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delphi 10.2.3 hangs when starting (with debugging) a 32 bit application

Update: as noted by some, this is a problem brought about by NOD32. An issue item for this in their system is:

https://forum.eset.com/topic/16237-probleme-debug-delphi-with-eset-11249/


Delphi 10.2.1 and 10.2.3 hang when starting (with debugging) any 32 bit application on Windows 10/64. This started after the computer was rebooted for the weekend like it is every weekend.

Debugging a 64 bit project compiles & runs ok. Debugging a 32 bit project compiles but hangs before/slightly after the project even starts running ("end task" on Delphi is the only option now). If I run without the debugger, the project runs ok. Delphi "stops responding".

I've seen this single form "do nothing" test application I have used to investigate this freeze after loading Kernel32 or Comdlg32.

Hearing how similar this is to the problems with Delphi 10.2 and Windows 10's Creator update, I migrated to Delphi 10.2.3. Same problem as before.

I restored to a backup of the Windows partition. After I did that, it worked until I rebooted and then it broke again.

I went to an earlier backup of the Windows partition & got the same result.

This is so strange...any ideas?

like image 375
X-Ray Avatar asked Jul 31 '18 23:07

X-Ray


2 Answers

I Thought it might relate to Nod32 as I had the same issue happen after a nod 32 update.

I have added the BDS.exe directory to be excluded from real time file system protection.

Seems to be fine now.

like image 130
Jon Avatar answered Oct 12 '22 06:10

Jon


I have seen this kind of behavior with F-Secure antivirus and Windows 10 1803 (April 2018 Update). This is similar to the last comments on this post : http://blog.marcocantu.com/blog/2017-june-delphi-packages-creators-update.html.

The only workaround I've found was to define the affinity of the BDS.exe process.

You can do this by right clicking the bds.exe process in the Details tab of the Task Manager and Define affinity but it will only define it for the current run.

You can define affinity definitively by running BDS through the command line.

Here is my shortcut :

C:\Windows\System32\cmd.exe /C START /affinity 1 bds.exe
like image 31
Charles-Henri Avatar answered Oct 12 '22 06:10

Charles-Henri