Hi all,
Hoping someone can help point out my mistake.
Issue with SYS"XOS_Find",&80.
Using SYS "XOS_Find",&80 to create a file, which is working fine.
Just trying to trap errors when it is unable to create the file.
Before I create the file I am using OS_File 17 to check if it exists
first, which again is working okay.
My bit of code is:
SYS "XOS_Find",&80,fname$ TO fhandle%;flags%
IF (flags% AND 1)<>0 SYS "OS_GenerateError",fhandle%
If I then try an save to say a readonly ShareFS share, it generates
expected error:
30 Dec 22:16:12 100 Message : Shared disc is read only at line
157
This I can trap and program continues to function.
If I try an save to Resources (yes I know it is readonly and nobody
should be attempting to save to it, but just for completeness) I
receive the following error:
30 Dec 22:08:05 100 Message : Internal error: abort on
instruction fetch at &2
With this error the program dies directly after running SYS "XOS_Find",&80,fname$ TO fhandle%;flags%
In article <662a8a935c.Paul@phorefaux>,
Paul Stewart <phorefaux@gmail.com> wrote:
Hi all,
Hoping someone can help point out my mistake.
Issue with SYS"XOS_Find",&80.
Using SYS "XOS_Find",&80 to create a file, which is working fine.
Just trying to trap errors when it is unable to create the file.
Before I create the file I am using OS_File 17 to check if it exists
first, which again is working okay.
My bit of code is:
SYS "XOS_Find",&80,fname$ TO fhandle%;flags%
IF (flags% AND 1)<>0 SYS "OS_GenerateError",fhandle%
If I then try an save to say a readonly ShareFS share, it generates
expected error:
30 Dec 22:16:12 100 Message : Shared disc is read only at line
157
This I can trap and program continues to function.
If I try an save to Resources (yes I know it is readonly and nobody
should be attempting to save to it, but just for completeness) I
receive the following error:
30 Dec 22:08:05 100 Message : Internal error: abort on
instruction fetch at &2
With this error the program dies directly after running SYS
"XOS_Find",&80,fname$ TO fhandle%;flags%
Using RISC OS 5.31 on a Titanium, I get the expected
Error : &00000113
Message: The filing system Resources: is read only
Maybe an old bug in RISC OS 4.42?
In article <662a8a935c.Paul@phorefaux>,
Paul Stewart <phorefaux@gmail.com> wrote:
Hi all,
Hoping someone can help point out my mistake.
Issue with SYS"XOS_Find",&80.
Using SYS "XOS_Find",&80 to create a file, which is working fine.
Just trying to trap errors when it is unable to create the file.
Before I create the file I am using OS_File 17 to check if it exists
first, which again is working okay.
My bit of code is:
SYS "XOS_Find",&80,fname$ TO fhandle%;flags%
IF (flags% AND 1)<>0 SYS "OS_GenerateError",fhandle%
If I then try an save to say a readonly ShareFS share, it generates
expected error:
30 Dec 22:16:12 100 Message : Shared disc is read only at line
157
This I can trap and program continues to function.
If I try an save to Resources (yes I know it is readonly and nobody
should be attempting to save to it, but just for completeness) I
receive the following error:
Indeed it does appear to be a bug in 4.42. Works okay on my Pinebook and under RISC OS 6 on VRPC.30 Dec 22:08:05 100 Message : Internal error: abort on
instruction fetch at &2
With this error the program dies directly after running SYS
"XOS_Find",&80,fname$ TO fhandle%;flags%
Using RISC OS 5.31 on a Titanium, I get the expected
Error : &00000113
Message: The filing system Resources: is read only
Maybe an old bug in RISC OS 4.42?
"XOS_Find",&80,fname$ TO fhandle%;flags%
Using RISC OS 5.31 on a Titanium, I get the expected
Error : &00000113
Message: The filing system Resources: is read only
Maybe an old bug in RISC OS 4.42?Indeed it does appear to be a bug in 4.42. Works okay on my Pinebook and under RISC OS 6 on VRPC.
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 54 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 13:36:16 |
| Calls: | 742 |
| Files: | 1,218 |
| D/L today: |
2 files (2,024K bytes) |
| Messages: | 183,470 |
| Posted today: | 1 |