Yes, I'm wondering if the stream object/functions are not closing the file
properly after reading, or something like that.
Mike
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Mike Cowlishaw, IBM Fellow
http://bit.ly/mfc
IBM UK (MP8), PO Box 31, Birmingham Road, Warwick, CV34 5JL
"Sahananda (Jon) Wolfers" <[email protected]>
25/01/2010 09:27
Please respond to
[email protected]; Please respond to
Open Object Rexx Developer Mailing List
<[email protected]>
To
Open Object Rexx Developer Mailing List
<[email protected]>
cc
Subject
Re: [Oorexx-devel] SysFileDelete Access denied
I have observed something that sounds similar using 3.2 under windows XP.
The way it *feels* to me is that when processor usage is high and you
close a file using ooRexx, the file is not 'freed' by the operating system
until later. Putting a syssleep in sometimes helps, but not always. My
guess is that the OS clearing some flag is handled in a lower priority
queue that is not attended to until the processor load goes down. I
cannot prove or reliably demonstrate this.
Furthermore, I have a feeling that the way other applications close files
is different and perhaps more robust, so If I have a file ostensibly
closed by ooRexx and I attempt to reuse it with ooRexx it fails, but If I
open it with notepad and then close it with notepad ooRexx can then
successfully reopen it. Again, I cannot recreate this and am unsure that
my explanation accurately reflects what is happening.
I hope that is of some help,
Jon
2010/1/25 Mike Cowlishaw <[email protected]>
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
------------------------------------------------------------------------------
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
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
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel