Hi folks. I have an app where I save away device events to a state based list variable (essentially making an event history file). I was losing some events due to simultaneous collisions so I updated to an atomicState variable but found I could not perform list operations on it.
Specifically, the following works:
state.list1.add(0,newline)
But changing to atomicState doesn't work. There's no error or exception thrown, the list simply doesn't get updated. To get around it I have to do the following:
temp=atomicState.list1
temp.add(0,newline)
atomicState.list1 = temp
Is this the expected operation, or is there perhaps a problem with array operations on atomicState? While my work around significantly closes the window where collisions could give me problems, being able to operate directly on the atomicState variable would close it all the way. Thanks for any input.