[OFF TOPIC]
quote:
Originally posted by raceprouk
quote:
Originally posted by CookieRevised
It can also mean, but this is not very likely, that the sound file can't be opened as it is in use by some other program
I think, just so long as no program has write access to the file, as many programs can read from it as possible.
Based on memory of the CreateFile() API.
Totally wrong...
If it is "in use by another program" it means that the file can't be accessed because that program has set the access rights to prevent it, no matter what the program was doing with the file (only reading, only writing, whatever).
The file can either be having no write access, no read access or both. No matter what API has been used or what that other program wants with the file, it doesn't matter at all. The only thing what matters is which locks have been set (or rather which locks haven't yet been removed by a certain buggy program).
Even if a program only reads a file, a file can still be locked for whatever restriction the program has set, including writing, reading, or both. In fact, a file can still be locked when no longer in use and when the initial program has quit. Just as a file can also be only locked in a certain region of its contents.
[/OFF TOPIC]