The array was passed on a call statement. The corresponding array in the called program had a different maximumSize.
Change one of the programs so that both use an array with the same maximumSize.