Mail Archives: djgpp/1999/06/08/08:19:48
On Mon, 7 Jun 1999, salvador wrote:
> But the problem comes whe I try to
> read the information from this file. Looks like even when the file
> exists I can't open it for a while (more than 1 second!), the most crazy
> detail is that it happends in most machines I tried, but not all.
It could be that Windows denies access to the registry for a while,
after it has been changed, perhaps because some OS components re-read
it.
Did you try to set some bits in __djgpp_share_flags? It might help.
I have a working program that lists all files open on a Windows 9X
system, including those open by system DLLs and all Windows programs.
The program lists every file with its open flags, so you could see
whether the registry is open, and if so, why is Windows denying access
to it. I can send you the source if you want (it is compiled with
DJGPP).
If nothing else helps, you could write a busy-wait loop that waits for
the file to become accessible, with some appropriate time-out.
- Raw text -