Well you said atomic, and arrays can never be atomic.

Sure, it makes your memcpy valid, but it isn't solving your problem.

> I have unsigned int variable that throughout code is either assigned a 0 or a 1
So this variable is actually nowhere in your post then?

Your 'guess' at one line of code which isn't even to do with the thing you're observing just isn't going to get it done.

Post a whole program, or at least some cut-down version which demonstrates the problem.