Array out of range in zigzag
hi guys, im trying to catch zigzag values for each symbol, but i get the "Array out of range" error on the loop that is using for catching zigzag values.
here is the function for catching zigzag:
and here is the loop that i use for changing symbols (witch is not the problem because i Resize the symbol array before):
can you help me to know whats the problem?
for(i=shift1 ; i<shift1+500 ; i++)
So in the loop of Zig function there is not any array that to be cause of the error,
Which line is the error marking?the code is incomplete,it can't be easy to figure it out.
your right mehrdad, i checked the entire code again and noticed the "i" value that handles my pairs loop, is changing in the end of code by another function, and its new value is greater than my pair array size. so i rename it to "j" and the problem solved.
OK,Good,
hi guys, im trying to catch zigzag values for each symbol, but i get the "Array out of range" error on the loop that is using for catching zigzag values.
here is the function for catching zigzag:
and here is the loop that i use for changing symbols (witch is not the problem because i Resize the symbol array before):
can you help me to know whats the problem?