Delphi on Windows 10 - Can't debug remote server anymore using TSocketConnection
I have a 3 tier application that uses TSocketConnection to connect to a remote datamodule server.
On Windows 8, I can open two instances of Delphi, one for the client and one for the server. I run both inside Delphi and can debug a server application using breakpoints: when a client calls a function on the server with a breakpoint, execution stops at that breakpoint in the Delphi server application.
In Windows 10, this behavior no longer occurs. In the same script above, when I start the client application, it opens a new instance of the server application without using the instance already open inside Delphi. This way I end up with two instances of the server application, not just one.
Is there a way to revert to previous behavior? It was very helpful to debug the server application.
thank
source to share
After I posed the question, I could find what was wrong and share here, so it might help someone.
It turns out that both instances of open Delphi (client and server) need to run as administrator. In my case, I was using Delphi XE for the client and Delphi 2007 for the server, and only Delphi XE worked as administrator.
So when I run Delphi 2007 as Administrator, I could debug the server application as it was running on Windows 8.
source to share