Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Feb : Re: Indy 9 TidTCPClient.WriteStream problem

www.cryer.info
Managed Newsgroup Archive

Re: Indy 9 TidTCPClient.WriteStream problem

Subject:Re: Indy 9 TidTCPClient.WriteStream problem
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Wed, 27 Feb 2008 10:09:36

"Tomislav Stamac" <tstamac@vip.hr> wrote in message
news:47c58bf5$1@newsgroups.borland.com...

> OnWork never gets called.

The only way that can happen is if the TStream is empty to begin with.  The
OnWorkBegin event should always be getting triggered regardless, specifying
a value in its AWorkCountMax parameter, even if it is zero.

> In Indy 8 I used tprogresstream for showing progressbar
> where tprogressstream had OnRead(Bytesread:cardinal);
> method. In Indy 9 I cant use it

Yes, you can.

> because Indy 9 seems to read all stream in the internal buffer
> or something and after that it sends stream,

No, that is not what Indy 9 does.


Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive