Announcement

Collapse

New Sub-Forum

In an effort to help make sure there are appropriate categories for topics of discussion that are happening, there is now a sub-forum for databases and database programming under Special Interest groups. Please direct questions, etc., about this topic to that sub-forum moving forward. Thank you.
See more
See less

Powerbasic, Memmaker and Remoteboot

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

  • Powerbasic, Memmaker and Remoteboot

    Well the subject line says it all. I have my new compact computers
    remote booting from an NT server, it was fairly simple (yea right).
    Now my problem is available memory. My application wrote in Powerbasic
    is running fine as a stand alone application but I can't run it
    via the IDE. I can edit and compile it but I am about 35K short
    when trying to run it from the IDE. I can't use memmaker to free
    up any memory because memmaker won't run from a network drive
    (remote boot drive).
    Remote boot uses Lan Manager to give me the connectivity I need to
    share the network drives but takes up much more memory than the
    DOS Client for NT networking I have been using. Here is a memory
    layout as printed from the problem workstation:


    Modules using memory below 1 MB:

    Name Total = Conventional + Upper Memory
    -------- ---------------- ---------------- ----------------
    MSDOS 14,381 (14K) 14,381 (14K) 0 (0K)
    HIMEM 1,168 (1K) 1,168 (1K) 0 (0K)
    EMM386 8,368 (8K) 8,368 (8K) 0 (0K)
    COMMAND 2,928 (3K) 2,928 (3K) 0 (0K)
    MINSES 1,904 (2K) 1,904 (2K) 0 (0K)
    NETWKSTA 43,216 (42K) 43,216 (42K) 0 (0K)
    ENCRYPT 2,128 (2K) 2,128 (2K) 0 (0K)
    RPL$ 97,168 (95K) 97,168 (95K) 0 (0K)
    Free 483,936 (473K) 483,936 (473K) 0 (0K)

    Memory Summary:

    Type of Memory Total = Used + Free
    ---------------- ---------- ---------- ----------
    Conventional 655,360 171,424 483,936
    Upper 0 0 0
    Reserved 393,216 393,216 0
    Extended (XMS)* 65,011,712 540,672 64,471,040
    ---------------- ---------- ---------- ----------
    Total memory 66,060,288 1,105,312 64,954,976

    Total under 1 MB 655,360 171,424 483,936

    Total Expanded (EMS) 4,423,680 (4,320K)
    Free Expanded (EMS)* 4,128,768 (4,032K)

    * EMM386 is using XMS memory to simulate EMS memory as needed.
    Free EMS memory may change as free XMS memory changes.

    Largest executable program size 481,600 (470K)
    Largest free upper memory block 0 (0K)
    MS-DOS is resident in the high memory area.

    I have tried configuring the machine with the NOEMS switch but
    that doesn't help, it frees up conventional memory but then I can't
    run Powerbasic at all. Anybody have any suggestions. Here is my
    current config files:

    Config.sys

    DEVICE=C:\BINR\RPLLNK.SYS
    SHELL=C:\DOS\COMMAND.COM C:\DOS /P
    LASTDRIVE=Z
    BUFFERS=10
    FILES=30
    STACKS=0,0
    DEVICE=C:\DOS\HIMEM.SYS /TESTMEM:OFF
    DEVICE=C:\DOS\EMM386.EXE 4096
    DOS=HIGH,UMB
    rem DEVICE=C:\LANMAN.DOS\DRIVERS\PROTOCOL\TCPIP\NEMM.DOS

    Autoexec.bat

    @ECHO OFF
    @echo **************************************************************
    @echo **************************************************************
    @echo ** Microsoft LAN Manager **
    @echo ** Copyright(c) Microsoft Corp., 1990 **
    @echo **************************************************************
    @echo **************************************************************
    SET COMSPEC=C:\DOS\COMMAND.COM
    SET PATH=C:\LANMAN.DOS\NETPROG;C:\DOS;C:\BINR;C:\BINB;
    SET PROMPT=$P$G
    SET TMP=C:\TMP
    SET TEMP=C:\TMP
    SET DOSSHELL=C:\WKSTA
    VER
    @ECHO ON
    @REM C:\LANMAN.DOS\DRIVERS\PROTOCOL\TCPIP\UMB.COM
    NET START RDR /RPL:YES /FIT:YES /COMPUTERNAME COMPUTER_NAME) /HIMEM:YES
    @FIXMEM
    @REM LOAD TCPIP
    @REM C:\LANMAN.DOS\DRIVERS\PROTOCOL\TCPIP\NMTSR.EXE
    @Echo Complete




    ------------------
    mailto:[email protected][email protected]</A>

  • #2
    The first thing you need to do is to put your HIMEM and EMM386
    lines as the first two lines in your CONFIG.SYS file.
    After that, use DEVICEHIGH in your config.sys and LOADHIGH
    or LH in your AUTOEXEC.BAT file to move as many files into
    the upper memory block as possible. Don't worry about overloading
    the UMB. If a file won't fit, it will automatically be loaded
    in the LMB. This should free up a LARGE amount of memory.



    ------------------
    There are no atheists in a fox hole or the morning of a math test.
    If my flag offends you, I'll help you pack.

    Comment


    • #3
      I believe the boot sequence will load himem first no matter
      where it is in the file. I should have pointed out that the mem
      command shows that there is no upper memory available. It says DOS
      is resident in upper memory but that is it. I tried the devicehigh
      statement in config.sys but without any upper memory available
      I'm stuck. I tried the noems switch for emm386 and it then gives
      me upper memory but Powerbasic will not start at all. I guess I'm
      trying to get both EMS and upper memory, maybe that isn't possible.


      ------------------
      mailto:[email protected][email protected]</A>

      Comment


      • #4
        It's perfectly possible to get both EMS and upper memory in most machines. Unfortunately, Microsoft seems to have buried the documentation on this stuff... anybody got an old DOS 5.0-6.0 manual?

        ------------------
        Tom Hanlin
        PowerBASIC Staff

        Comment


        • #5
          Try adding the RAM parameter to emm386:
          device=emm386.exe RAM 4096 (see also : help emm386.exe under MS-DOS)


          ------------------
          Peter.
          mailto[email protected][email protected]</A>
          Regards,
          Peter

          Comment


          • #6
            Indeed you can use the 'RAM' option to get both EMS and UMB (or simply use QEMM).
            With UMB available I use "LH PB.EXE" to launch the PB editor and it gives me
            lots of extra conventional memory in the IDE.


            ------------------
            Sebastian Groeneveld
            mailto:[email protected][email protected]</A>
            Sebastian Groeneveld
            mailto:[email protected][email protected]</A>

            Comment

            Working...
            X