Announcement

Collapse
No announcement yet.

Will upgrade give me more room?

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

  • Will upgrade give me more room?

    I haven't upgraded since 1995 and am currently running version 3.1. I have a reason to update a program written back then but would like to be able to run it in the IDE. According the 3.1's IDE I need 280k for this but have only 210 or so. Will version 3.5 allow me to run this program in its IDE?



    -------------
    George Green

  • #2
    There is almost no difference in the amount of RAM available to your apps in the IDE between 3.x and 3.5 (the IDE has had no significant changes in that time, only the language set has expanded).

    However, if you use numeric or fixed-length string arrays, then PB3.5 may be able to help you: using PB3.5, it is possible to create arrays in EMS (we call them VIRTUAL arrays). Up to 16 or 32 Mb of arrays can be created (depending on how much EMS your operating system can provide).

    There are some caveats to use virtual arrays... you cannot use ARRAY SORT, etc, but the addition of such a huge amount of memory (which obviously frees a large chunk of conventional memory) will usually out-weigh the disadvantages.

    That said, PB3.5 adds many other new and handy features that 3.1 does not have, so you may find the upgrade is worth-while in other areas too.

    On the other hand, you could try using MEMMAKER to optimize your existing set-up to give more memory to PB.EXE, and also try launching PB with the LOADHIGH command, ie, LOADHIGH PB.EXE

    There is always the command-line debugger (PBD.EXE) too.



    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>
    Lance
    mailto:[email protected]

    Comment


    • #3
      Hmm...
      I thought memmaker went out with windows 3.1, I'm using '98. I may be in for a long slow tooth can.. er rewrite. The original program was written in Turbo Basic 1.0 and upgraded as time went on using the TB database toolkit, the PB fixes to that toolkit and the Full Power Toolbox. None of which seem to work in the PB/CC I bought for this project the other day. Oh well.




      Originally posted by Lance Edmonds:
      There is almost no difference in the amount of RAM available to your apps in the IDE between 3.x and 3.5 (the IDE has had no significant changes in that time, only the language set has expanded).

      However, if you use numeric or fixed-length string arrays, then PB3.5 may be able to help you: using PB3.5, it is possible to create arrays in EMS (we call them VIRTUAL arrays). Up to 16 or 32 Mb of arrays can be created (depending on how much EMS your operating system can provide).

      There are some caveats to use virtual arrays... you cannot use ARRAY SORT, etc, but the addition of such a huge amount of memory (which obviously frees a large chunk of conventional memory) will usually out-weigh the disadvantages.

      That said, PB3.5 adds many other new and handy features that 3.1 does not have, so you may find the upgrade is worth-while in other areas too.

      On the other hand, you could try using MEMMAKER to optimize your existing set-up to give more memory to PB.EXE, and also try launching PB with the LOADHIGH command, ie, LOADHIGH PB.EXE

      There is always the command-line debugger (PBD.EXE) too.



      ------------------
      George Green

      Comment


      • #4
        Memmaker can be used with Win95/98. Edit MSDOS.SYS and change one line BOOTGUI=0

        The run MEMMAKER. You should find a copy *somewhere* on your Win98 CDROM.

        ------------------
        Lance
        PowerBASIC Support
        mailto:[email protected]ic.com[email protected]</A>
        Lance
        mailto:[email protected]

        Comment


        • #5
          Unknown to most people you can prevent execution of win9x simply by placeing empty file on C:\ called win.bat. If I don't need windows to boot for some diagnostic stuff then I simply use the following command.

          Echo >win.bat

          And I use the command on the root of drive C:\. After using Memaker and stuff just dellete the file and presto your up up and away. No need to use the Attrib -h -s -r command on the msdos.sys and then edit the file and all that suff.

          Hope this helps.

          ------------------

          Comment

          Working...
          X