ReDim Byte array - “Out of memory” error?

被刻印的时光 ゝ 提交于 2020-01-05 06:36:20

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!