I was just working on a routine to detect multiple concurrent sessions using locks and am being foiled by the logon process. I'm using HR-1 5.5 (Arev 3.02). I put the code in the VOC item that is executed automatically by the system on logon. My plan was to set a lock that would remain throughout the session. Problem is, the logon process seems to do an unlock all. What is it that is doing this unlock all? How can I hook into the logon process after the last unlock all?
I've hit this problem too.
I set a lock on a user record in a table. It seems to hold a file lock, but loose the record lock. The only way around it was to open the file again and immediatly place the lock on the record. It seemed to work then, but odd. eh??
I suspect that either DICT.MFS or indexing does "unlock all"s. I understand there is a certain call to made to the BFS which you might intercept, via MFS, to reinstate your lock after an unlock all.
Steve
It is RTP2 that is doing it. The question is, how can I load a process immediately after RTP2 is finished?
Well MFSs are called on install, so you could write an MFS just for this….
amcauley@sprezzatura.com
World Leaders in all things RevSoft
I was hoping not to have to go the MFS route. I hate to clutter up the system with unnecessary MFSs since they are all executed for certain operations, such as UNLOCK ALL.
If memory serves, there were all sorts of things relating to unlock all and transactions, so it could be possible to create some sort of transaction record in your logon that would prevent the unlock all call.
akaplan@sprezzatura.com