PxPlus User Forum

Main Board => Discussions => Programming => Topic started by: Thomas Bock on April 16, 2024, 04:35:17 AM

Title: strange error 61
Post by: Thomas Bock on April 16, 2024, 04:35:17 AM
I don't understand why the code below throws an err 61 sometimes

Code: [Select]
BUSY_FILE_NAME$ = "[lcl]Busy.txt"
serial BUSY_FILE_NAME$, err = *next
if tcb(2) {
rem in case the file could not be created ...
} else {
busyFile = hfn
open lock (busyFile) BUSY_FILE_NAME$
rem this throws error 61 ???
}
Title: Re: strange error 61
Post by: Devon Austen on April 16, 2024, 07:52:52 AM
One of the reasons for a error 61 is:

   •  When using WindX, remote access ('WindX authorization') has been denied.

Is this running via WindX?

If so make sure you have your WindX Security setup correctly to not deny access.

For info about WindX security check here:

https://manual.pvxplus.com/?windx/Windx%20Security.htm
Title: Re: strange error 61
Post by: Thomas Bock on April 16, 2024, 10:24:31 AM
This is a WindX session and the security options are properly set.
The error occures at random. But how can that be? The file has just been created, so PxPlus must be able to open it.
Title: Re: strange error 61
Post by: James Zukowski on April 16, 2024, 12:53:18 PM
Have you tried separating the OPEN from the LOCK?