Article View: borland.public.cppbuilder.internet.socket
Article #789ServerSocket and Threads
From: Patryk B.
Date: Wed, 12 Sep 2007 09:19
Date: Wed, 12 Sep 2007 09:19
21 lines
1426 bytes
1426 bytes
Hello, Im using ServerSocket and Threads (http://dn.codegear.com/article/26276). I have problem with closing server application when some clients are connected. On FormClose event i have code: ServerSocet->Active=false; And everythink is ok when any client isn't connected. When client is connected and im trying to close application it hang. I think that i should disconnect client/terminate active threads befor close application? Best regards, Patryk B.
Technical Details
Message-ID:
<op.tyjavhtkwzezly@dune.intranet>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,f2f18bf54164452d,start X-Google-Attributes: gid11508e,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Wed, 12 Sep 2007 11:19:55 +0200 Subject: ServerSocket and Threads Reply-To: pbobak@no.spam.o2.pl From: "Patryk B." <pbobak@no.spam.o2.pl> Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-2 MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.socket Content-Transfer-Encoding: Quoted-Printable Message-ID: <op.tyjavhtkwzezly@dune.intranet> User-Agent: Opera Mail/9.23 (Win32) NNTP-Posting-Host: 195.116.247.227 X-Trace: newsgroups.borland.com 1189588804 195.116.247.227 (12 Sep 2007 02:20:04 -0700) Lines: 21 Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail X-Original-Bytes: 1276