Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Feb : Re: Indy 9 TidTCPClient.WriteStream problem
| Subject: | Re: Indy 9 TidTCPClient.WriteStream problem |
| Posted by: | "Tomislav Stamac" (tstam..@vip.hr) |
| Date: | Fri, 29 Feb 2008 08:54:43 |
Hi,
>
> No that isn't what happened - Don't assume anything - you don't even know
> what I was working on...
>
I'm sorry, I assumed that because You asked me what size the stream was.
>
> Gotcha. I was using WriteBuffering too until Remy put me straight on it.
> I'd totally forgotten about this until reading your reply and seeing this
> line.
>
> Do not use WriteBuffering as it doesn't seem to make OnWork...Work. It
> just seems to absorb the entire file elsewhere within windows and gives
> the impression that the entire file has been sent instantly.
>
I don't use writebuffering, or I'm not aware that I am.
I just use Client.WriteStream(AStream,True,True);
> You don't need to use ProcessMessages...
>
Yes, well, that's pretty old source, from the time I was learning delphi...
Cancel button on the form wouldn't work without it.
Later I discovered two things:
1. there is TIdAntifreeze
2. calling application.processmessages is big trouble
regards