问题
When I try to initialize(ReDim) Byte array with long data type then I am getting Run-time error : Out of memory exception.
I have tried many ways but still no luck. It is Throwing Out of memory error if I ReDim Byte > 200000000
Dim bArr() As Byte
Dim lSize As Long
lSize = 210000000
ReDim bArr(0 To lSize) 'This statement is throwing out of memory error
I want the Byte Array to accept the range of Long variable but getting Out of Memory error
来源:https://stackoverflow.com/questions/56059268/redim-byte-array-out-of-memory-error