Mega Code Archive

 
Categories / Delphi / LAN Web TCP
 

Error reading from Socket

Title: Error reading from Socket Question: I created a three tier web application that used DLLs and connected to a midas server for the SQL data using a TSocketConnection to the Borland's scktsrvr. After a period of idleness on the part of the browser, this dreaded message would be returned ... Error reading from Socket. A search of the newsgroups showed that others experienced similar problems. Unfortunatly, I couldn't find their solutions to the problem. Answer: in each of your TWebActionItem's OnAction event, block your code with: SocketConnection1.connected := true; try { your code } finally SocketConnection1.connected := false; end;