well found the problem after a lot of playing , the variable STDByte did not have number of elements defined for an array variable