Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Jan : Re: Can Synchronize()... ?

www.cryer.info
Managed Newsgroup Archive

Re: Can Synchronize()... ?

Subject:Re: Can Synchronize()... ?
Posted by:"Jamie Dale" (jamie.da..@yahoo.com)
Date:Tue, 8 Jan 2008 23:20:14

Sorry to drag this one back up ...

Where can I find this TIdNotify? - Is it part of Indy 9 or part of some
other unit?

D6 doesn't find anything in it's help and the Indy9 KB.exe doesn't have
anything either!

Plese help!


"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:477eb4bc$2@newsgroups.borland.com...
>
> "Jamie Dale" <jamie.dale@yahoo.com> wrote in message
> news:477eaa88$1@newsgroups.borland.com...
>
>> Can Synchronize be used to shut down TIdTCPServer from within a AThread?
>
> If the TIdTCPServer belongs to the main thread, then no.  You will
> deadlock your code.  If you need a server thread to shut down the server,
> then you have to perform the shutdown asynchronously so the thread can
> terminate itself properly when the shutdown actually occurs.  You can use
> the TIdNotify class for that.
>
>
> Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive