Article View: borland.public.cppbuilder.internet.socket
Article #4566TServerSocket::Close() / TServerClientThread::ClientExecute()
From: PurL
Date: Wed, 26 Jan 2005 15:54
Date: Wed, 26 Jan 2005 15:54
19 lines
1480 bytes
1480 bytes
Hi, (I'm French, sorry for my bad english.) I devellop a server using TServerSocket component in stThreadBlocking mode. When a client connected to my server, a thread was created and the ClientExecute function was called normaly. But, when I want to close manualy my Server (with TServerSocket::Close()) I have an access violation in VCL50.BPL. I supposed that the reason is the function ClientExecute (mainly WaitForData) always run whereas the socket is closed. How can I close the server properly ? Thanks for your help, PurL. PS : Do you know a french newsgoup or forum about VCL ?
Technical Details
Message-ID:
<41f7bd2b$0$28933$8fcfb975@news.wanadoo.fr>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!proxad.net!193.252.118.146.MISMATCH!news.wanadoo.fr!news.wanadoo.fr!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,5acd58a9e548b1,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!proxad.net!193.252.118.146.MISMATCH!news.wanadoo.fr!news.wanadoo.fr!not-for-mail From: "PurL" <purl-nospam@chez.com> Newsgroups: borland.public.cppbuilder.internet.socket Subject: TServerSocket::Close() / TServerClientThread::ClientExecute() Date: Wed, 26 Jan 2005 16:54:42 +0100 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Lines: 21 Message-ID: <41f7bd2b$0$28933$8fcfb975@news.wanadoo.fr> Organization: les newsgroups par Wanadoo NNTP-Posting-Host: 83.195.133.248 X-Trace: 1106754860 news.wanadoo.fr 28933 83.195.133.248:63691 X-Complaints-To: abuse@wanadoo.fr