Announcement

Collapse
No announcement yet.

64k array size limit

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 64k array size limit

    Hello,
    I receive the message "Static array exceeds 64k" when I try to compile.
    Is there any way to get around this (besides decreasing the size of the array, using multiple arrays, or using a multi-dimensional array)?
    Thanks!!

    ------------------
    Dan N
    Dan N

  • #2
    Dan,
    check out DIM HUGE and DIM VIRTUAL if you want to exceed 64k

    Paul.


    [This message has been edited by Paul Dixon (edited March 13, 2006).]

    Comment


    • #3
      (Sorry for the slow reply)
      Thanks! That is certainly helpful! Still haven't managed to get these methods to work in my case, but gets things closer.


      ------------------
      Dan N
      Dan N

      Comment


      • #4
        >"Static array exceeds 64k" when I try to compile

        You can't use "STATIC" with HUGE or VIRTUAL.

        Then again, if you make the arrays DYNAMIC you may not even require HUGE or VIRTUAL.

        See help file, Language Reference, "DIM" for complete explanation.

        Michael Mattias
        Tal Systems (retired)
        Port Washington WI USA
        [email protected]
        http://www.talsystems.com

        Comment


        • #5
          Thanks for the help!
          I made my array dynamic, and (with some minor modification) it works now as intended.
          This is for a ticket & seating program, so if, in the future, the seating array is expanded (to up to 8060 entries), it would be terrific if the program doesn't crash.
          Using HUGE for this application, the program runs out of memory under the same practical conditions as it would without HUGE.


          ------------------
          Dan N
          Dan N

          Comment


          • #6
            >Using HUGE for this application, the program runs out of memory under the same practical conditions as it would without HUGE..

            When you are out of regular MS-DOS memory, you are out of memory, period.

            HUGE arrays come out of 'regular' MS-DOS memory. VITRUAL arrays come out of EMS. So you should probably use VIRTUAL now if you are going to have to manage that much data. (Or change design to not try to use arrays for whatever it is you are using them).


            Michael Mattias
            Tal Systems (retired)
            Port Washington WI USA
            [email protected]
            http://www.talsystems.com

            Comment

            Working...
            X