Yeah you're right.
Dlls usually use a pointer to the first element in the array, and increment the pointer to read through it. VarPtr(Array[0]) returns an int ptr (if your array is full of ints) - the other method returns a pointer to the entire array I guess so skips along in memory by the entire array length every time it is incremented - possibly generating a MAV.
Dlls usually use a pointer to the first element in the array, and increment the pointer to read through it. VarPtr(Array[0]) returns an int ptr (if your array is full of ints) - the other method returns a pointer to the entire array I guess so skips along in memory by the entire array length every time it is incremented - possibly generating a MAV.