Home > Back-end >  Delphi TIdTcpServer/TIdTcpClient issues
Delphi TIdTcpServer/TIdTcpClient issues

Time:10-18

Have the following questions ask you how to deal with:

1. TIdTcpServer realize the service side, if there is a client connected to the server, and then I stop service complains;

2. TIdTcpClient implementation the client if the connection to connect to an IP + port, complains;

3. TIdTcpClient client I through a thread to receive the message from the server, but when I quit and then disconnect complains, estimates that could be because a thread has not stopped, but I through the Terminate cannot Terminate;

Please talk about everyone's way, gives the example code is better, thank you!!!!!!

CodePudding user response:

Connection error can
Try
Except,
End to deal with

CodePudding user response:

reference 1st floor shandiantianying response:
connection error can
Try
Except,
End to handle


Start with Delphi development tools, use the complains, also with the compiled exe start didn't effect, have a way to make the development environment is also not display an error?

CodePudding user response:

Delphi is such, debug mode will pop up the exception, is commonly called a ready-made controls, and control the inside has been on the exception handling,

CodePudding user response:

You are in the Debugger Options - language Exceptions, combined with the exception, there would be no hint, compile time
  • Related