Re: Can't use TComponent in thread object?



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
.



Relevant Pages

  • Re: Inbox bug?
    ... >>> Download complete messages not a proportion of the header. ... >>> Brett ... I do recall seeing something similar, ...
    (microsoft.public.pocketpc)
  • Re: Where to find good icons?
    ... Brett ... > I am using internet explorer and when I right click on the download link ... What are you using that you can right for the ICO ... >>> Kevin ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Inbox bug?
    ... >> Download complete messages not a proportion of the header. ... Brett ...
    (microsoft.public.pocketpc)
  • Re: Where to find good icons?
    ... I am using internet explorer and when I right click on the download link ... (the downward facing arrow) ... "Brett" wrote: ... What are you using that you can right for the ICO ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Where to find good icons?
    ... What are you using that you can right for the ICO ... Where do you see "download"? ... The file will then download as an icon file ...
    (microsoft.public.dotnet.languages.vb)