You are on page 1of 6

http://www.computerhope.com/forum/index.php?topic=85305.

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

Computer Hope Forum


Main page Welcome, Guest. Please login or register. Did you miss your activation email?
Forever Login

Free help

Tips

Dictionary

Links

Contact
Search

Forum only search News: Latest news on CH Forum issues and update

Login with username, password and session length

Help

Login

Register

Computer Hope Microsoft Microsoft DOS insufficient memory

previous next Pages: [1] Go Down


PRINT

0 Members and 1 Guest are viewing this topic.

ntambomvu
Topic Starter

insufficient memory
on: June 11, 2009, 12:02:26 PM

Hello all-- greetings from South africa


Greenhorn

I am writing some addins to some old dos programs that i use in my small factory. I am using a pentium 4 and windows XP I am getting a message "insufficient memory" . There is however plenty of memory Can anyone suggest a work around?? regards ntambomvu
Logged

Aegis
PM Expert

Re: insufficient memory


Reply #1 on: June 11, 2009, 02:38:09

At what point do you get the error message? Are these batch files? What kind of code are you writing?
Logged

Thanked: 67

1 of 6

12/15/2013 2:40 PM

http://www.computerhope.com/forum/index.php?topic=85305.0
Experience: Experienced OS: Windows XP

"For you, a thousand times over." - "The Kite Runner"

DaveLembke
PM Egghead

Re: insufficient memory


Reply #2 on: June 11, 2009, 02:44:45

You could be running out of the 640k base memory... Are there any TSR's or other services for these dos programs that are eating up too much base memory. run MEM at dos prompt and report back the figures shown You can have tons of extended Ram like 2GB, but if you pull down your base memory too low then you can run into this situation with some dos programs. Newer programs use Windows OS with extended Ram, but if the programs were intended to address base memory addresses then you could be in this situation if not addressing extended memory. Is this a Windows Alert or a DOS Program Alert to the memory insufficient. Also have these programs run before without problems or is this a new configuration?
Code: [Select] Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\dlembke>mem

Thanked: 191

Certifications: List Computer: Specs Experience: Expert OS: Windows 7

655360 bytes total conventional memory 655360 bytes available to MS-DOS 599072 largest executable program size 1048576 bytes total contiguous extended memory 0 bytes available contiguous extended memory 941056 bytes available XMS memory MS-DOS resident in High Memory Area C:\DOCUME~1\dlembke>

You should see something like this and "Largest Executable Program Size" is the key here...should be in the 580k ->640k range otherwise DOS programs may complain. The more the better and if less than 590k I would be looking for a way to get back 10k if say 580k ***Also run a virus scan to make sure system is clean...if an old floppy had a TSR virus on it it could also cause this low base memory issue.
Last Edit: June 11, 2009, 02:56:06 PM by DaveLembke Logged

Interest in computers started with Atari 2600 and TRS-80 Model 1

ntambomvu
2 of 6

Re: insufficient memory


Reply #3 on: June 12, 2009, 05:01:19

12/15/2013 2:40 PM

http://www.computerhope.com/forum/index.php?topic=85305.0
Topic Starter AM

Many many thanks for the reply-- i thought that being a dos question that i would be battling for an answer - but i was wrong- youir input is appreciated > Are there any TSR's or other services I really dont know - ?? how can i find out? Running mem give the same answers as your screen shot except that in my case the 599072 largest executable program size is 633,??? ( not quite 640 but more that your 599 >

Greenhorn

>Is this a Windows Alert or a DOS Program Alert to the memory insufficient. I am programming in dbase 4 ver 2 for dos and the error is being reported by the dos program ( not by windows)

Also have these programs run before without problems or is this a new configuration? No This is new code ---(while i have many other programs in the same language- this is the first time I have seen this message) the message appears about half way through a data capture screen that uses many @ say get statements and the complete entry page is 4 screens long- so I thinh that the page may be heavy for dos

***Also run a virus scan to make sure system is clean I was AVG regularly and no problems reported? Answers to further questions in you mail are >batch files ---- not these are .prg files

> I am running dbase 4 ver 2 and the code is very basic data-capturing stuff.
Logged

DaveLembke
PM Egghead

Re: insufficient memory


Reply #4 on: June 12, 2009, 12:55:41

Well If you have 633k base then TSRs are not a concern. TSRs generally eat up base memory, but you have plenty. You may be grabbing too much info and exceeding the buffer -->
Thanked: 191
Quote message appears about half way through a data capture screen that uses many @ say get

3 of 6

12/15/2013 2:40 PM

http://www.computerhope.com/forum/index.php?topic=85305.0
Certifications: List Computer: Specs Experience: Expert OS: Windows 7
statements and the complete entry page is 4 screens long- so I thinh that the page may be heavy for dos

Can you chunk it out a little into smaller portions for it to handle and piece the 2 halves together to get the entirety of it? Is there any static information for a good stop/start flag location in the page that can be used to tell it to grab the first piece of info until it hit that flag, then write to file, then grab and append the 2nd half to the end of that file, you then can open that file and use that any way that you need.
Logged

Interest in computers started with Atari 2600 and TRS-80 Model 1

ALAN_BR
AM Hopeful Thanked: 5 Computer: Specs Experience: Experienced OS: Windows 7

Re: insufficient memory


Reply #5 on: June 13, 2009, 09:33:46

DBASE 4 is likely to understand neither Windows XP, nor the COMMAND.COM and CMD.EXE imitations of "proper" MSDOS. In the good old days Bill Gates said that 640 KBytes was more than enough memory. Ancient software is likely to interpret a GByte of memory as implausibly large, and decide it is a negative number because all memory has been used up. There are error conditions that are new with XP, and were unknown with MSDOS. Perhaps DBASE 4 gives a reasonable explanation of errors it is familiar with, and anything else is covered by a "catch-all" of "insufficient memory". Regards Alan
Logged

macdadAM Expert Thanked: 39

Re: insufficient memory


Reply #6 on: June 13, 2009, 11:28:36

This would probably mean that he would have to get say DOSBOX, since getting the actual thing would bring the same errors. DOSBOX is a substitute for the actual DOS, since its programmed to work in Windows. You can probably run Dbase 4 in DOSBOX. Here's the link for DB: http://www.dosbox.com/download.php?main=1 Hope this helps ,Nick(macdad-)
Logged

If you dont know DOS, you dont know Windows... Thats why Bill Gates created the Windows NT Family.

ntambomvu
4 of 6

Re: insufficient memory


Reply #7 on: June 13, 2009, 01:29:18

12/15/2013 2:40 PM

http://www.computerhope.com/forum/index.php?topic=85305.0
Topic Starter PM

Thank you very much-- you guys ( Dolls??) have been very helpful-It is nearly 10Pm here so i will be forging onward with theis tomorrow__

Greenhorn

I will post the results best regards Fred ( big grin)


Logged

patio
Moderator PM

Re: insufficient memory


Reply #8 on: June 13, 2009, 05:11:31

Expert

Is Himem.sys enabled in your config.sys file ? ?


Logged

Maud' Dib Thanked: 1303 " All generalizations are false, including this one. "

Experience: Beginner OS: Windows 7

DaveLembke
PM Egghead

Re: insufficient memory


Reply #9 on: June 13, 2009, 06:07:41

Worth checking, but since XP doesn't normally use Config.sys at initialization as well as autoexec.bat I am not sure if that will help or not...on the DOSBOX it would definately help to have himem set for max base mem.
Logged Thanked: 191 Interest in computers started with Atari 2600 and TRS-80 Model 1 Certifications: List Computer: Specs Experience: Expert OS: Windows 7

ntambomvu
Topic Starter

Re: insufficient memory


Reply #10 on: June 16, 2009, 02:14:04 AM

Greenhorn

Thanks for all the input I found that the easiest thing was to break the code into blocks and put a "read" statement before the line that caused the error and it seems top be running well. About DOSBOX--- I am interested but am a little scared of trying to fix something that is not broken !! What is dosbox actually? i

5 of 6

12/15/2013 2:40 PM

http://www.computerhope.com/forum/index.php?topic=85305.0

Is it a replacement of the old dos 6.22? If i install it am I likely to have errors with the dos programs that i am using? As I use Dbase on a network will it be nessessary to have dosbox on all the workstations or is it ok only to use it for programming regards fred (By the way -- anyone who still uses dos probably also hates being ripped off with inkjet printer cartridge replacement costs. Well i think i have licked the problems of refilling- interested to know- just let me know. No costs nothing you cant do in your garage regards)

Logged

macdad-

Re: insufficient memory


Reply #11 on: June 16, 2009, 07:50:34 AM

Expert

DosBox is a sort of Port for Windows/Emulator of the actual MS-DOS.


Thanked: 39

DosBox shouldn't bring up the same errors, its designed for Windows which should allow it to handle the large amounts of RAM.
Logged

If you dont know DOS, you dont know Windows... Thats why Bill Gates created the Windows NT Family.

Pages: [1]

Go Up

PRINT

previous next
Computer Hope Microsoft Microsoft DOS insufficient memory

Jump to: => Microsoft DOS go

Old Forum Search | Forum Rules Copyright 2013 Computer Hope All rights reserved. SMF 2.0.5 | SMF 2013, Simple Machines
Page created in 0.557 seconds with 23 queries.

6 of 6

12/15/2013 2:40 PM

You might also like