Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Sep : Re: Block TCP client call in a thread?
| Subject: | Re: Block TCP client call in a thread? |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Tue, 18 Sep 2007 10:55:19 |
"Richard Bibby" <richard.bibby@profdoc.com> wrote in message
news:46efd3d1@newsgroups.borland.com...
> This worked well with UDP but not with TCP. The application
> hangs even though the cleint TCP compoent is running in its
> own thread.
The only way that can happen is if you are connecting to the server in the
context of the main thread instead of the worker thread, such as via a
synchronized call.
Gambit