Groups | Search | Server Info | Login | Register
Groups > comp.sys.acorn.programmer > #6581
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Paul Stewart <phorefaux@gmail.com> |
| Newsgroups | comp.sys.acorn.programmer |
| Subject | SYS "XOS_Find",&80 |
| Date | Tue, 30 Dec 2025 22:36:08 GMT |
| Organization | A noiseless patient Spider |
| Lines | 35 |
| Message-ID | <662a8a935c.Paul@phorefaux> (permalink) |
| Injection-Date | Tue, 30 Dec 2025 22:41:49 +0000 (UTC) |
| Injection-Info | dont-email.me; posting-host="b087e0fc05f72ebf03b10fba06e4b0f2"; logging-data="2261707"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19vqgBHOjKmUYo7Ul++rDkh" |
| User-Agent | Messenger-Pro/9.00 (MsgServe/9.00) (RISC-OS/4.42) NewsHound/v1.54 |
| Cancel-Lock | sha1:3KdSEUExuXsJI/i07ZHB9EHOQrw= |
| X-Editor | EmailEdit 2.04 |
| Xref | csiph.com comp.sys.acorn.programmer:6581 |
Show key headers only | View raw
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% -- Paul Stewart Sent from A9home running RISC OS 4.42
Back to comp.sys.acorn.programmer | Previous | Next — Next in thread | Find similar
SYS "XOS_Find",&80 Paul Stewart <phorefaux@gmail.com> - 2025-12-30 22:36 +0000
Re: SYS "XOS_Find",&80 Martin <News04@avisoft.f9.co.uk> - 2025-12-30 23:33 +0000
Re: SYS "XOS_Find",&80 Paul Stewart <phorefaux@gmail.com> - 2025-12-30 23:57 +0000
Re: SYS "XOS_Find",&80 Paul Stewart <phorefaux@gmail.com> - 2025-12-31 13:16 +0000
Re: SYS "XOS_Find",&80 Paul Stewart <phorefaux@gmail.com> - 2025-12-31 13:43 +0000
csiph-web