No execute handler found

Giganews Newsgroups
Subject: No execute handler found
Posted by:  John Herbster (herb-sci1_at_sbcglobal.net)
Date: Thu, 11 Sep 2003

I have a TIdTCPClient connected to a TIdTCPServer.
The server drops the connection.  I think that I am
forgetting to do something in the server.

Here is from my log of server program:
  Server: No execute handler found.
  Disconnects

Here is from my log of the client program.
  IdTCPClient1Connected
  Connected successfully.
  IdTCPClient1Disconnected
  Connection Closed Gracefully.
  Unexpected turn off

Here is how I open the receiver (client):

  IdTCPClient1.Host := Host_e.Text;
  IdTCPClient1.Port := StrToInt(Port_e.Text);
  IdTCPClient1.Connect({Timeout}-1);
  If IdTCPClient1.Connected
    then LogExceptions('Connected successfully.');

Here is a bit of code from the client's timer event used to
check for a connection before it checks for data
available to read:

  If not IdTCPClient1.Connected
    then begin
      LogExceptions('Unexpected turn off');
      Active_ck.Checked := false;
      EXIT;
      end;

From the log that the client turns itself off *before*
the code immediately above executes.

Thanks for any suggestions.  Regards, JohnH

Replies