Re: Can't use TComponent in thread object?
- From: Rob Kennedy <me3@xxxxxxxxxxx>
- Date: Fri, 24 Nov 2006 16:50:23 -0600
brett wrote:
How is it possible for one thread to read the size of a file while
another thread is still writing to it? This runs into sharing I/O
errors.
It might have to do with the sharing flags you specified when opening the file.
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.
--
Rob
.
- 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
- 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
|