Dim frameInValues.u (250000,0)
ReDim frameInValues.u (250000,1949)
ReDim frameInValues.u (250000,1950);----> Variable Viewer: The Array is not initialized
An Unicode array of the dimensions (250000, 1949) has 487,501,950 entries and allocates 975,003,900 bytes (~930 MiB) of memory.
If you make it bigger your operating system may has trouble to simply enlarge the memory when it can not find enough free memory directly behind the currently allocated space in memory.
If this is the case it has to allocate a completely new memory block of the target size and copying over the data from the old to the new location in memory. During this process your program consumes more than twice the amount of memory. And if there is not enough memory left the ReDim operation simply fails.
That might be the reason why your first example does not work but the other ones do.
The issue could be related to your system.
In the first case ReDim frameInValues.u (250000,1949) allocates around 1 GB.
If you then resize the array and the memory do not fit at the current position, PureBacis allocates another 1 GB for the new array and copy all data. You need 2 GB space.
In the second case, the initial array is very small, and only 1 GB is needed.
In the third case, you also need only 1.5 GB.