That error means that the value of i is either less than the Lower bound of the array or is greater than the Upper bound of the array.