Main Board > Programming

strange error 61

(1/1)

Thomas Bock:
I don't understand why the code below throws an err 61 sometimes


--- Code: ---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 ???
}

--- End code ---

Devon Austen:
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

Thomas Bock:
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.

James Zukowski:
Have you tried separating the OPEN from the LOCK?

Navigation

[0] Message Index

Go to full version