-
Notifications
You must be signed in to change notification settings - Fork 23
Delphi_UnableToCreateProcess
Zaher Dirkey edited this page Jun 21, 2023
·
3 revisions
Delphi cannot run program win64 when internet sharing service is running or WinNat etc, it returned error “Unable to create process”
ICS, WinNat and some other app or services is block binding socket to port to some port from 63020 to 65535 or any range.
It effect on debugging win64 project in Delphi because Delphi debugger for win64 is using “dbkw64_28_0.exe” or similar, that use port above 63020 or later 64448.
To check the range of ports is reserved or used run one of this commands.
netstat -an | find "LISTENING"
netsh interface ipv4 show excludedportrange protocol=tcp```
To resolve the problem temporary you can stop the services that reserved it, or just stop and start
net stop WinNAT
net start WinNAT
To resolve the problem permanent, reserved this port to your self before WinNat reserved it
net stop WinNAT
netsh int ipv4 add excludedportrange protocol=tcp startport=64440 numberofports=10 store=persistent
net start WinNAT
To delete your reservation
netsh int ipv4 delete excludedportrange protocol=tcp startport=64440 numberofports=10