Thanks Bruce, that's clear now.
Another question - I am looking for an intermittent bug which posts an error message on the server:
'Entry not found [30] attempting to access a record from the Accelera file.'
The explanation for this is:
'A GET to QUEUE has failed. For GET(Q,key), the matching key value was not found, and for GET(Q,pointer), the pointer is out of range'
This is odd because 'Accelera' (actually Acceleration) is a Memory file (IMDD) and I don't have anywhere in this application the commands GET from a Queue by Pointer or Key. But assuming that the error is really related to this file I do have a question about concurrent processing of the file which maybe could cause an error.
I use Acceleration to store data based on Session Id. To make sure that the file size is kept to a minimum, whenever I add records I first delete the existing records for that session viz:
LOOP until Access:Acceleration.next()
if ACC:SessionId not= UserSessionId then break.
Access:Acceleration.DeleteRecord(0)
END
The file is Threaded. Is it possible that if two or more sessions are concurrently reading and deleting records that an access error could result because of the timing of events - is this code 'safe' in an NT application?
Thanks
Keith