What Causes This?
Using two or more parallel loops to write to and read from the same variable or trying to access a Network Shared Variable while a value is being written to it, can cause a race condition in the following scenarios:
- A loop is reading the value of a local, global, or shared variable, and another is writing to the value of the local, global, or shared variable. If they are not synchronized, then the value could be read before it has actually been sent or vice-versa.
- A computer is writing data to the Network Shared Variable and other computers try to access the value at the same time.