Cl 5.01, Win '95, Novell 3.11 and NetLib 6.0e (N_SLock())
The version of NetLib you are running does not support Windows 95.
You will need to upgrade to NetLib 6.5 for semaphore locks to run
correctly on Windows 95 workstations.
The NetLib homepage is at http://www.netlib.com, or you can call
Communication Horizons at 203-656-0448.
> Hi all,
> We have some Clipper legacy apps that use NetLib's N_SLock() function to
> lock a semaphore for each user based on a string and the next available
> semaphore number.
> FUNCTION SEM_LOCK(cStr)
> LOCAL X,RETVAL=""
> IF cStr==NIL
> FOR X:=1 TO 25
> IF N_SLOCK(cStr+TRIM(STR(X)))
> IF X>=25
> RETURN RETVAL
> We can use other functions then to count the number of USER semaphores
> locked. This gave us a true usercount even if programs were exited
> We recently converted most workstations to Windows '95 and have noticed
> that our apps running in Win '95 no longer set or read the sempaphore
> locks. The few stations still on DOS/Win 3.1 do recognize each others
> locks though.
> Any insights?