On Thursday, 22 April 2021 at 21:15:48 UTC, tcak wrote: > "positions" array is defined as auto positions = new float[ 100 > ]; So, I am 100% sure, it is not out of range. "ri*dim + 1" is > not a big number at all. Oh and *where* is that positions variable defined?