1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Insufficent Memory From DOS Program

Discussion in 'Earlier Versions of Windows' started by Brian Thorn, Dec 6, 2001.

Thread Status:
Not open for further replies.
  1. Brian Thorn

    Brian Thorn Thread Starter

    Joined:
    Dec 6, 2001
    Messages:
    1
    Please someone help. There is a critical application that my employer uses that is a DOS based program on a WIN95 platform.
    The system cannot be upgraded due to this program. The program is called Microcontrol and handles financial reporting. The program loads, but when you try to enter or display data it returns a "insufficent memory try using expanded memory" error message. Since it is a DOS based program I figured it was that the system was using to much of the conventional memory. The system, using the MEM program, displays a largest executable file size of 581k. I took everything out of Config.sys and Autoexec.bat in order to free up more lower memeory. I also made sure that WIN95 did not have anything loading in startup. After that the file size remains at 581k. I right clicked on the icon for MC and entered properties. There was a memory tab that you can adjust the conventional, expanded, and XMS memory. I tried all variables, but nothing worked. I also tried running it from the MSDOS prompt. No luck. I forced windows not to load at start up using ALT-F5, this increased the largest executable size to 593k. I still got the message. I have run out of options. Please someone give me some advice. Is there a command that will force a DOS program to run in upper memory. And where do you type it in the command statement, i.e. C:\mcdir\mcib\prog\mc.bat. The program starts from a .bat file.
     
  2. WhitPhil

    WhitPhil Gone but never forgotten Trusted Advisor

    Joined:
    Oct 4, 2000
    Messages:
    8,684
    Try adding the following lines to the front of your CONFIG.SYS file. It you have similar lines, comment them out by placing the letters REM followed by a space, at the front of those lines.

    Device=c:\windows\Himem.sys
    Device=c:\windows\Emm386.exe Auto

    Save and reboot

    This should give the program access to UMBs and Expanded memory, when it requests it.
     
  3. Kwaite

    Kwaite

    Joined:
    Jul 23, 1999
    Messages:
    14
    Whitphil answer is the best. But a config.sys that handles mostly all dos applications using expanded memory should look like this.


    Device=c:\windows\himem.sys
    device=c:\windows\emm386.exe 4096
    dos=high,umb
    files=101
    buffers=30,0

    Try allocation some memory to the emm programs for expanded memory usage. This will give you the least conflicts. If you need more memory increase by +512 increases. This will force the system to say within the 64 page window in upper memory. Donot use the x=b7ff-bfff switch if someone suggests with 95 running dos applications.

    dos=high,umb push dos back high will help Even though windows can manage it. With the auto feature it may sometime tried to load low on a quick boot of the system (not powering on and off).

    Files 101 is the max files assigned windows and dos programs will see. Thanks (foxpro). 101 max for networking and dialup features. There is 220+ that dos and windows will use. 202 for users interface and the rest for internal opts.

    Buffers 30,0 means donot load any buffers low load them out od the way high.

    Good luck.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/60902

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice