Re: Can't use TComponent in thread object?



"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.

Groetjes,
Maarten Wiltink


.



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. ... Personally I would break this into two different Apps ...
    (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: 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)
  • Re: Strange NFS write performance Linux->Solaris-10/VXFS, maybe VW related
    ... The server exports two filesystems. ... The filesystems are mounted NFS3/TCP, ... when writing to the VXFS based filesystem, ...
    (Linux-Kernel)
  • Re: ELF file: linking in large binary data
    ... But then writing the program to generate the binary ... >> This is going to be my fallback if I can't find an easier way. ... ever worked on had filesystems. ... overhead when all you want is an initialized data structure. ...
    (comp.arch.embedded)