Mutex and file access

Forum Windows 2000/NT : Windows 2000/NT General Discussion - Mutex and file access

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: microsoft.public.win2000.file_system (More info?)

 

I hav ean application that writes to a file using fwrite() within a thread.
It also uses CreateMutex() and WaitForSingleObject() to control the access.
It would appear through logging that I am successfully creating the Mutex,
and successfully writing to the file. However, when the volume of activity
is high it will arbitrarily "lose" one of the lines of the file. It logs as
having written it, but it is not there.

I would appreciate any help or suggestions anyone can offer as this is
getting very frustrating to attempt to debug.

Thanks in advance

Sponsored Links
Register or log in to remove.
Tom's Hardware > Forum > Windows 2000/NT > Windows 2000/NT General Discussion > Mutex and file access
Go to:

There are 1261 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them