Select - Lock (AREV Specific)
At 24 AUG 1998 05:15:56AM Chris wrote:
We have a program which has been running for years.
It selects a group of records and writes them under a different key (3 part key). 100 records are read but only 20 are created with the program crashing back to the main menu.
select customer with ....loopreadnext @id else stopread @record from customer.file, @id thenLock table overflow' often appears.There are no Btree or Quickdex indexes on the file.
Any suggestions?
At 25 AUG 1998 10:00AM Matt Sorrell wrote:
Chris,
Are you using any sort of locking logic in your loop? If you are, make sure you explicitly unlock any records you lock. For instance:
LOCKED=0
LOOP
LOCK MY.FILE,THIS.ID THEN LOCKED=1UNTIL LOCKED
REPEAT
UNLOCK MY.FILE,THIS.ID
If you're not using locking logic, then I don't have a clue, except for maybe how you've defined locking for the entire application.
Matt
At 25 AUG 1998 10:03AM Matt Sorrell wrote:
Chris,
Are you using any sort of locking logic in your loop? If you are, make sure you explicitly unlock any records you lock. For instance:
LOCKED=0
LOOP
LOCK MY.FILE,THIS.ID THEN LOCKED=1UNTIL LOCKED
REPEAT
UNLOCK MY.FILE,THIS.ID
If you're not using locking logic, then I don't have a clue, except for maybe how you've defined locking for the entire application.
Matt
At 26 AUG 1998 05:54AM Chris wrote:
No, the program is basically as shown.
We have since found that the ARev copy commands RECORDCOPY/COPYROW produce the same error.
My feelings are moving towards the network causing the problem, but no one knows how.
At 26 AUG 1998 11:37AM Victor Engel wrote:
I'm not sure how to set it, but Netware provides the ability to set the size of the lock table (semaphores). I think the maximum setting is 10,000, which should be more than ample for Arev.