Maybe you're using bracket notation?
such as array[1][2]
if so, it isn't the proper way to use arrays.
You should use it as array.at(1,2)
Also, arrays are zero based, and no dimensions should have size zero. If you want a two dimensional array, Z should be 1.
Without seeing your caproject, I can't say.