This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Vision api - Read no lock

I need to read Vision file from .NET core on Linux system.

I see there are Vision APIs and I can use them.

I have only a problem:

  • If I open a file in read-only mode, all read are with the "no lock" clause (as told in the documentation)
  • If I open a file in a read-write mode, I need to specify if I want the lock (default) of if I want the no-lock

The documentation says:

Records read from a file open for I/O are automatically locked unless the external variable f_no_lock is set to a non-zero value first

But how can I set this variable if I don't find any call in the library to set it?

Can you provide any C# example for set/unset it?

Tags:

  • 0

    filesys.h.  In filesys.h there is:

    extern  short                   *Astdlib_f_no_lock(void);

    #define f_no_lock               (*Astdlib_f_no_lock())

    So, Astdlib_f_no_lock() is a function that returns a pointer to a short.  They want to set that short to 1 to turn off record locking.

    SW Engineering(QA)  

    Although I am an OpenText employee, I am speaking for myself and not for OpenText.
    If you found this post useful, give it a “Like” or click on "Verify Answer" under the "More" button