>> Where is the correct embed to open the file, without it being closed so that it will remain open throughout all procedures and sessions.
wrong
>> WebServer proc, be sure the file in NOT threaded.
very, very wrong. What Alberto meant here was that while the file must be THREADED it must share the data across threads - so make sure you are not using the /THREADEDCONTENT switch. Making the file itself non-threaded would mean a shared record buffer, and that would be _very_ bad in a multi-threaded environment.
Back to Johan's question;
>> Where is the correct embed to open the file, without it being closed so that it will remain open throughout all procedures and sessions.
The mistake here is in treating the memory table different to any other table. For purposes of use, the fact it is a Memory driver should not matter. Indeed if it helps you, think of the table as a TPS table. Or perhaps a TPS-table-on-a-RAM disk.
Specifically;
a) the table needs to be opened (and if you like closed) on each thread where it's used.
b) closing the table does _not_ empty it.
c) if you use a variable file name, you can have multiple tables containing different data.
Treat it _exactly_ like any other table, and you'll be on the right track.
cheers
Bruce