Re: Can't use TComponent in thread object?
- From: Nicholas Sherlock <N.sherlock@xxxxxxxxx>
- Date: Sat, 25 Nov 2006 15:47:11 +1300
brett wrote:
But as I said before, you shouldn't need to poll the size of the file.
As you download the file, simply keep track of how many bytes you've
downloaded. That will also be the size of the file, but you'll have that
number without needing another thread and without doing any additional I/O.
I don't know of any function or property on the FTP object that gives
this. How are you suggesting to get that value?
Sometimes your socket set will provide an OnProgress event which your thread can handle, and which gives you the number of bytes downloaded so far.
Cheers,
Nicholas Sherlock
--
http://www.sherlocksoftware.org
.
- Follow-Ups:
- Re: Can't use TComponent in thread object?
- From: brett
- Re: Can't use TComponent in thread object?
- References:
- Can't use TComponent in thread object?
- From: brett
- Re: Can't use TComponent in thread object?
- From: Jamie
- Re: Can't use TComponent in thread object?
- From: brett
- Re: Can't use TComponent in thread object?
- From: Rob Kennedy
- Re: Can't use TComponent in thread object?
- From: brett
- Re: Can't use TComponent in thread object?
- From: Nicholas Sherlock
- Re: Can't use TComponent in thread object?
- From: brett
- Re: Can't use TComponent in thread object?
- From: Nicholas Sherlock
- Re: Can't use TComponent in thread object?
- From: brett
- Re: Can't use TComponent in thread object?
- From: Rob Kennedy
- Re: Can't use TComponent in thread object?
- From: brett
- Re: Can't use TComponent in thread object?
- From: Rob Kennedy
- Re: Can't use TComponent in thread object?
- From: brett
- Can't use TComponent in thread object?
- Prev by Date: Re: Can't use TComponent in thread object?
- Next by Date: Re: Can't use TComponent in thread object?
- Previous by thread: Re: Can't use TComponent in thread object?
- Next by thread: Re: Can't use TComponent in thread object?
- Index(es):
Relevant Pages
|