Discussion:
StonyBrook: Access ReadOnly
(too old to reply)
Rob
2011-05-18 13:38:06 UTC
Permalink
It sometimes happens thet when I want to edit a program module, the
following message appears:

Access to this file is ReadOnly

When this happens, I am not able to make any changes.

The strange thing is, that when I check the file attributes in the
Command Interpreter (ex DOS), it appears that the file is not ReadOnly
at all.
Even when I do

attrib <filename> -r -h -s

the same irritating 'Access to this file is ReadOnly' message will
appear again.

How to get rid of it????

(Using StonyBrook Modula-2, DOS32)

Kind regards,

Rob.
Edward De Jong
2011-05-20 07:11:33 UTC
Permalink
This can happen when you unexpectedly quit a stony brook project
whilst the file was open and had been changed. Stony brook IDE locks
the file by setting it read only when it is open in an other project
for editing, as insurance against someone changing it externally.

there is an easy way to repair this, i am trying to remember now.. i
think you turn off the read only flag inside the IDE, or you quit the
IDE and then change it with properties... sorry haven't had this
happen in a long time.

edward
Marco van de Voort
2011-05-20 08:57:12 UTC
Permalink
Post by Edward De Jong
This can happen when you unexpectedly quit a stony brook project
whilst the file was open and had been changed. Stony brook IDE locks
the file by setting it read only when it is open in an other project
for editing, as insurance against someone changing it externally.
there is an easy way to repair this, i am trying to remember now.. i
think you turn off the read only flag inside the IDE, or you quit the
IDE and then change it with properties... sorry haven't had this
happen in a long time.
IIRC Topspeed (the dos version) had a similar problem when you quit the IDE
and very quickly restarted it.

The trouble is that contrary to dos, filelocks on windows can linger a few
seconds.

Loading...