Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Aug : Re: TIdTCPClient ReadStream()

www.cryer.info
Managed Newsgroup Archive

Re: TIdTCPClient ReadStream()

Subject:Re: TIdTCPClient ReadStream()
Posted by:"Jamie Dale" (jamie.da..@yahoo.com)
Date:Tue, 4 Sep 2007 20:21:34

Nevermind Remy I found it while i was in the middle of moving house.


"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:46d60b82$1@newsgroups.borland.com...
>
> "Jamie Dale" <jamie.dale@yahoo.com> wrote in message
> news:46d5e840$1@newsgroups.borland.com...
>
>> For reading Strings/Commands this is fine and does not affect the UI.
>>
>> As soon as the thread uses ReadStream() the UI is frozen.
>
> Assuming ReadStream() is being called in the thread as well, then the only
> way it can be affecting the UI is if you are using the OnWork events in a
> thread-unsafe manner.  If you are not using the OnWork events at all, on
> the
> other hand, then there is no possible way that ReadStream() can do
> anything
> with the main thread.
>
> Please show your actual code.
>
>
> Gambit

Replies:

none

In response to:

www.cryer.info
Managed Newsgroup Archive