strange error 61

Started by Thomas Bock, April 16, 2024, 04:35:17 AM

Previous topic - Next topic

Thomas Bock

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

Devon Austen

#1
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
Principal Software Engineer for PVX Plus Technologies LTD.

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?
James Zukowski
Sr. Developer - J&E

BRAND>SAFWAY
Brand Industrial Services