Following the above .......
The creation of arrays seems to be at fault.
unsigned char Array[5] ........ should produce 6 locations 0 - 5
Array[5] = '5'; should put '5' into array at location 5
a = Array[5]; In this example 'a' will not be '5'
If the array is made larger say ... static char Array[6] then Array[5] works as it should and I assume Array[6] is now faulty but I have not checked. The contents are constant, nott varying, and so are being read from somewhere.
IDE version: SourceBoost IDE version 7.30
Com