Hey all,
I was wondering if there was a posiblity of error if two seperate threads are accessing the same variables.

i.e. I write several threads that gathers data from several communication ports (rs232, tcp etc) and puts those values in a public array of all data. I also have a thread that updates the display form with data all of the data from that array.

Could this cause an error down the line with different threads reading and writing to the same variables?

Thanks,
Nick