Hi everyone,
Is there any known workaround to the apparent limit of array allocation in VB6 (SP6) IDE?
For example, this one will fail with an "Out of memory" error in IDE:
But the compiled .exe will run this fine:Code:Option Explicit Private sngArray() As Single Private Sub Form_Load() ReDim sngArray(150000000) '150M End Sub
Thanks in advance!Code:Option Explicit Private sngArray() As Single Private Sub Form_Load() ReDim sngArray(400000000) '400M End Sub
edit: Compiling to P-Code will also successfully run the 400M test




Reply With Quote
