I have 1 thread that adds items to a table and another that searches the table for specific strings often the search thread gives an error "index was outside the bounds of the array" I assume this is because the thread adding a row is causing the table to be unavailable for a period of time. I tried setting a variable before and then clearing it after the operation adding the row then checking that variable in the search thread before doing the search but it still gives the error. add thread: increment(#barow)set(#tablelock,$true,"Global")set table cell(&babooks,#barow,0,"")set(#tableloc