PxPlus User Forum
Main Board => Discussions => Programming => Topic started by: Thomas Bock on April 16, 2024, 04:35:17 AM
-
I don't understand why the code below throws an err 61 sometimes
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 ???
}
-
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
-
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.
-
Have you tried separating the OPEN from the LOCK?