Re: Can't use TComponent in thread object?



On Sat, 25 Nov 2006 14:04:59 +0100, "Maarten Wiltink"
<maarten@xxxxxxxxxxxxxxxxxx> wrote:

"brett" <account@xxxxxxxxx> wrote in message
news:1164403830.742167.50390@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

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.

What makes you think the OS should allow that at all? That said, if
the writing process set the right sharing flags, it should be possible
on at least some filesystems.

Better to ask the other thread how many bytes it's written.

Or let the other thread tell you without being asked.

Personally I would break this into two different Apps
- I am wary of threads
.



Relevant Pages

  • Re: Cant use TComponent in thread object?
    ... This runs into sharing I/O ... the writing process set the right sharing flags, ... on at least some filesystems. ... Maarten Wiltink ...
    (alt.comp.lang.borland-delphi)
  • Re: Cant use TComponent in thread object?
    ... another thread is still writing to it? ... This runs into sharing I/O ... It might have to do with the sharing flags you specified when opening the file. ... As you download the file, simply keep track of how many bytes you've downloaded. ...
    (alt.comp.lang.borland-delphi)
  • Re: My project wish-list for the next 12 months
    ... The lack of speed in some apps can be blamed mostly on the toolkits. ... GTK+ 1.2 was a speed demon, GTK+ 2.x is a lot slower. ... people working on a fast Pango code path that could make english text ... Replacing X means writing something that's API compatible, ...
    (freebsd-current)
  • Re: My project wish-list for the next 12 months
    ... The lack of speed in some apps can be blamed mostly on the toolkits. ... GTK+ 1.2 was a speed demon, GTK+ 2.x is a lot slower. ... people working on a fast Pango code path that could make english text ... Replacing X means writing something that's API compatible, ...
    (freebsd-hackers)
  • Re: Allocating space in a file
    ... that will work on all filesystems, short of writing the whole file. ... where you may not even know if the remote system implements holes (or ... The sources for mkfile (which can be used to allocate files without ...
    (comp.unix.solaris)