Board index » delphi » TIdFtp.Put doesn't fire OnWork events

TIdFtp.Put doesn't fire OnWork events

Hi,

I upload a file and try to use a progress bar. But the problem is TIdFtp
doesn't fire OnWorkBegin, OnWork and OnWorkEnd events.

Any ideas?

Thank you,
Andrew

 

Re:TIdFtp.Put doesn't fire OnWork events


Quote
Andrey L <leyand...@attbi.com> wrote in message

news:3e47085d@newsgroups.borland.com...

Quote
> Hi,

> I upload a file and try to use a progress bar. But the problem is
TIdFtp
> doesn't fire OnWorkBegin, OnWork and OnWorkEnd events.

> Any ideas?

?? Mine does, on both get & put.  Indy 9.0.11.

Rgds,
Martin

Re:TIdFtp.Put doesn't fire OnWork events


Andrew,

Quote
> I upload a file and try to use a progress bar. But the problem is
TIdFtp
> doesn't fire OnWorkBegin, OnWork and OnWorkEnd events.

> Any ideas?

Yes, TIdFTP fires those events, unless the file is small enough to fit
in one buffer. (In that case, there's nothing to report to the event -
everything's sent at once; also, you don't need a progress bar then
either, as all is done.)

Ken
---
Ken White
kwh...@adpsi.com

Clipper Functions for Delphi and C++ Builder
http://www.adpsi.com

Other Threads