PxPlus User Forum

Twitter Twitter Twitter

Author Topic: strange error 61  (Read 228 times)

Thomas Bock

  • Diamond Member
  • *****
  • Posts: 179
    • View Profile
strange error 61
« 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 ???
}

Devon Austen

  • Administrator
  • Diamond Member
  • *****
  • Posts: 384
  • Don’t Panic
    • View Profile
    • PVX Plus Technologies
Re: strange error 61
« Reply #1 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
« Last Edit: April 16, 2024, 07:54:30 AM by Devon Austen »
Principal Software Engineer for PVX Plus Technologies LTD.

Thomas Bock

  • Diamond Member
  • *****
  • Posts: 179
    • View Profile
Re: strange error 61
« Reply #2 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.

James Zukowski

  • Diamond Member
  • *****
  • Posts: 308
    • View Profile
Re: strange error 61
« Reply #3 on: April 16, 2024, 12:53:18 PM »
Have you tried separating the OPEN from the LOCK?
James Zukowski
Sr. Developer - J&E

BRAND>SAFWAY
Brand Industrial Services