Split the two functions
one module that makes and maintains the tables another that reads and sends in updates. Call the first from the second when needed. The first can then control locking and memory.
the non programmer answer.
thanx,
bill
"You're just like me streak. You never left the free-fire zone.You think aspirins and meetings and cold showers are going to clean out your head. What you want is God's permission to paint the trees with the bad guys. That wont happen big mon." Clete
questions, help? [link|mailto:pappas@catholic.org|email pappas at catholic.org]