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