I have a little program that occasionally fails.  Unfortunately it is run 
thousands of times a day, so fails once or twice a day.   Essentially it 
does this:

  reads a file X and records the content
  closes the file X

  processes and modifies the content

  writes the content to a temporary file
  call sysfiledelete X
  renames the temporary file to X

Sometimes the rename would fail, and it turned out that this was because 
the sysfiledelete was failing with rc=5 (access denied).

I've worked around the problem by adding a retry loop with a short delay 
-- but any ideas what could be causing the problem?    The program is 
running in it's own process, and no other process uses the file  (except 
perhaps Windows Search, but I wouldn't expect that to be looking at a data 
file, nor so often).

This is on Windows 7, ooRexx 4.00

Mike

-----





Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU





------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to