Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Jul : Lost Handles using TCustomServerSocket
| Subject: | Lost Handles using TCustomServerSocket |
| Posted by: | "Gary Johnson" (geoffr..@geoffreynyc.com) |
| Date: | Mon, 25 Jul 2005 14:41:03 |
In using TServerSocket under Delphi 7, I notice that if I set up an
application to connect and disconnect from the server every 2 seconds, the
handle count on the server application increases steadily. In tracing
through the OnDisconnect event, I notice that the call to CloseSocket is
made in the TCustomWinSocket.Disconnect, which is where I normally look for
lost handles. While I've coded up an OnClientError handler it's never
accessed, so the error cannot occur in that handler. The OnClientDisconnect
service performs local clean up but leaves the closing of the socket to the
TCustomWinSocket library.
Does anyone have any light they can shed on this situation. Any help would
be appreciated.
Thanks in advance,
Gary