Problems with rename - is it fcloseall ??

Discussion in 'C Programming' started by Bruce P., Aug 4, 2003.

  1. Bruce P.

    Bruce P. Guest

    I have a C routine that uses the fcloseall() command, then moves
    immediately into a routine that renames the files just closed.
    Occasionally, a rename will fail, even though both the "from" and "to"
    filenames are complete and accurate.

    I'm beginning to wonder if there may be some sort of residual lock on
    the file(s) left over from the fcloseall() that is causing the rename
    to fail, and this is just a timing issue that would be resolved by
    causing the process to sleep for a few milliseconds.

    This process has been in place and running for several years now, but
    this problem has just started within the past few weeks.

    Any comments/suggestions are greatly appreciated.
     
    Bruce P., Aug 4, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Hugz
    Replies:
    3
    Views:
    584
    Harmit Jhajj
    Feb 25, 2004
  2. Kathy Burke
    Replies:
    1
    Views:
    450
    Ron Vecchi
    Jul 26, 2003
  3. Bruce P.
    Replies:
    0
    Views:
    400
    Bruce P.
    Aug 5, 2003
  4. loial

    Problems with os.rename

    loial, Apr 20, 2007, in forum: Python
    Replies:
    1
    Views:
    268
    Michael Hoffman
    Apr 20, 2007
  5. lukas

    os.rename() problems on OS X

    lukas, Jan 11, 2008, in forum: Python
    Replies:
    1
    Views:
    307
    Steven D'Aprano
    Jan 12, 2008
Loading...

Share This Page