Thread: fflush() not working with Windows 7

  1. #31
    Registered User
    Join Date
    Aug 2010
    Location
    England
    Posts
    90
    Sorry. Forgot to say, debug aids were put in to call fflush() - no failures found - then removed.
    Never re-write code unless the user benefits

  2. #32
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    >> Win7 PC's on a 2003 network do not exhibit this problem.
    I was under the impression that the issue occurs when writing to a local drive - no networking involved.

    Does the issue occur on a local hard drive, flash drive, or network drive?

    gg

  3. #33
    Registered User
    Join Date
    Aug 2010
    Location
    England
    Posts
    90
    The issue occurs on a local drive, that's correct, but the Windows 7 PC has to be connected to the network for the problem to arise in the combinations described.

    all of our software is multiuser and client server, and all application programs reside on the server, or a singler PC on the network in peer to peer configuration.

    The only time files are written to local drives is for external machine control for machines that are incapable of being networked.

    Normally, files are written to removable media, which is when the problem first arose. However, the first workaround - writing first to the C-drive and then file copied to a removable device failed because the original copy on the C-drive corrupted as per the removable drive. This eliminated removable drives as the problem.

    I think I have already mentioned that if the file is written to a network server, there is no corruption.

    This means that whatever is amiss is on the Windows 7 PC itself.

    As you can appreciate, the only data difference is the file name is now X:FRED instead of C:FRED.
    Never re-write code unless the user benefits

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Do I need to wait in between fclose() and fopen()?
    By patiobarbecue in forum C Programming
    Replies: 7
    Last Post: 07-06-2010, 04:33 PM
  2. Just starting Windows Programming, School me!
    By Shamino in forum Windows Programming
    Replies: 17
    Last Post: 02-22-2008, 08:14 AM
  3. how to make a windows application
    By crvenkapa in forum C++ Programming
    Replies: 3
    Last Post: 03-26-2007, 09:59 AM
  4. Script errors - bool unrecognized and struct issues
    By ulillillia in forum Windows Programming
    Replies: 10
    Last Post: 12-18-2006, 04:44 AM
  5. Replies: 3
    Last Post: 08-18-2004, 07:39 AM