Results 1 to 17 of 17

Thread: VB6 SP6 IDE array allocation limit

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2015
    Posts
    8

    VB6 SP6 IDE array allocation limit

    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:

    Code:
    Option Explicit
    Private sngArray() As Single
    Private Sub Form_Load()
        ReDim sngArray(150000000) '150M
    End Sub
    But the compiled .exe will run this fine:

    Code:
    Option Explicit
    Private sngArray() As Single
    Private Sub Form_Load()
        ReDim sngArray(400000000) '400M
    End Sub
    Thanks in advance!

    edit: Compiling to P-Code will also successfully run the 400M test
    Last edited by FWinds; Mar 16th, 2015 at 02:56 PM. Reason: additional info

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width