Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: xms alloc error  (Read 7204 times)

0 Members and 1 Guest are viewing this topic.

wbrost

    Topic Starter


    Intermediate
  • Thanked: 11
    xms alloc error
    « on: April 15, 2009, 12:34:24 PM »
    I am currently working on a boot disk that will load drivers and such onto a ram drive. I am using xmsdsk.exe to make the drive.

    I have the following in my config.sys file:

    DEVICE=C:\dos\HIMEM.SYS /TestMem:Off
    DEVICEHIGH=c:\DOS\ifshlp.sys
    files=30
    DOS=HIGH,UMB
    lastdrive=z

    my batch file that loads the drivers has the following:

    set PATH=R:\;R:\NET;C:\DOS
    set TEMP=R:\net\TEMP
    LOADHIGH=C:\dos\XMSDSK.EXE 2048 r: /T /Y
    cd c:\PCI\net\B57
    c:\dos\xcopy32 *.*/s r:>r:\temp.log
    CD\
    cd c:\PCI\net\Net
    c:\dos\xcopy32 *.*/s r:\net>r:\temp.log
    r:
    LH \net\net initialize
    \net\netbind.com
    c:\dos\aname.exe
    \net\tcptsr.exe
    \net\tinyrfc.exe
    \net\nmtsr.exe
    \net\emsbfr.exe
    CLS
    \net\net start
    \net\Net USE Z: %netloc%
    Z:
    C:\dos\mouse.com
    C:\dos\XMSDSK.EXE /U /Y
    C:\ghost\ghost.exe -auto -sure -z3
    goto _END




    The issue occurs when the following commad is ran.
    LOADHIGH=C:\dos\XMSDSK.EXE 2048 r: /T /Y

     I receive the xms alloc error

    any ideas?

    thank you,
    Wayne

    devcom



      Apprentice

      Thanked: 37
      Re: xms alloc error
      « Reply #1 on: April 15, 2009, 12:47:03 PM »
      i found this:
      Quote
      This error appears on computers which have more than 32MB RAM, as most computers in our days do. Aladdin 'thinks' that it has too little RAM, and refuses to run. This error seems to pop up in pure DOS mode only, not when you run the game under Windows. However, under Windows, you may experience sound problems, so you might want to run it in pure DOS. In which case, use the EATXMS program, as suggested by et2k, to occupy all the RAM except the last 32 megabytes.
      Quote
      search for the file eatxms.exe/com on search engine.after you get it,you have to "eat memory".for aladdin you need less then 32 mega.so if you have 64 megabyte,you should write something like eatxms 17000.now run aladdin normaily.for some sound cards,you have to wait for 1-2 min before the game starts.
      Download: Choice.exe

      wbrost

        Topic Starter


        Intermediate
      • Thanked: 11
        Re: xms alloc error
        « Reply #2 on: April 15, 2009, 01:29:54 PM »
        ok but I am trying to run this on multiple systems. They will very in the amount of ram they have available to them.

        BC_Programmer


          Mastermind
        • Typing is no substitute for thinking.
        • Thanked: 1140
          • Yes
          • Yes
          • BC-Programming.com
        • Certifications: List
        • Computer: Specs
        • Experience: Beginner
        • OS: Windows 11
        Re: xms alloc error
        « Reply #3 on: April 15, 2009, 10:17:15 PM »
        what is wrong with using RAMDISK.SYS to create a RAM disk?

        it supports a switch for using extended memory.
        I was trying to dereference Null Pointers before it was cool.

        wbrost

          Topic Starter


          Intermediate
        • Thanked: 11
          Re: xms alloc error
          « Reply #4 on: April 16, 2009, 09:07:55 AM »
          nothing I figured it out. We were using the /T switch on xmsdsk.exe. That works fine until you have more memory then 2048. I removed the switch and it now works fine.