VOGONS

Common searches


Changing the memory amount is DOSBox

Topic actions

First post, by _Greenpoe_

User metadata
Rank Newbie
Rank
Newbie

When I try to run certain things, it says "Out of Memory! Try unnloading your TSRs". I changed the dosbox maximum memory in dosbox.conf to 64 megabytes. I KNOW that is enough memory. How can I change that?
I have a Mac OS X computer.

Reply 1 of 21, by DosFreak

User metadata
Rank l33t++
Rank
l33t++

What are you trying to run?

It could be because you have too much memory. I doubt that it is referring to EMS/XMS but likely conventional. Try running "loadfix" in dosbox.

How To Ask Questions The Smart Way
Make your games work offline

Reply 5 of 21, by mirekluza

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

I wonder what is this then?

LOADFIX [-size] [program] [program-parameters]

There are more details there about this command, but I left them out so you can practise reading README.

Mirek

Reply 7 of 21, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

Start with the (internal DOSBox) command MEM:

C:> mem

Notice how much free memory DOSBox makes available for your program.
Next run LOADFIX:

C:> loadfix

Now check how much memory LOADFIX has "eaten" from DOSBox - and thus from your application:

C:> mem

Do you see the difference? Should be around 64 KB less free memory.
Now try running your program:

C:> name-of-program

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 9 of 21, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

Then try
1) "loadfix -f" to free up memory.
2) "loadfix -1" to eat 1 KB of memory.
3) Run program.

If that fails, go back to step 1, and instead of 1 KB, let loadfix eat 2 KB ("loadfix -2"). Repeat for 3 KB, 4 KB, etc.

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 11 of 21, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

Well, if you buy me a 2-way 1st class air ticket, a taxi ride from the airport to your home and back, I will come and install the game for you. My best estimate is that I can get it up and running in 2-3 hours (for which I will charge you $100 per hour). Of course, if I fail to get it up and running, I will void those $300.

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 13 of 21, by Freddo

User metadata
Rank Oldbie
Rank
Oldbie

Thing is, you don't have any TSRs loaded. DOSBox emulates a DOS enviroment that is quite rare and a few programs are really bad at handle it and give out fake errors or simply crash. The "loadfix" command was made to fix that.

And you have still not answered the question, what are you trying to run?

Last edited by Freddo on 2004-11-04, 14:00. Edited 1 time in total.

Reply 14 of 21, by Markus

User metadata
Rank Newbie
Rank
Newbie

How can I unload my TSRs?

Most certainly you can't, because there aren't any loaded. If there were, you probably wouldn't have to ask...

Please answer DosFreaks question: What are you trying to do?

Reply 16 of 21, by DosFreak

User metadata
Rank l33t++
Rank
l33t++

Well Keen 1 works fine for me in Dosbox.

Modkeen just locks up for me in the latest CVS using Full/Dynamic core. It uses CWSDPMI for memory. Guess I'll try out different versions of CWS.

How To Ask Questions The Smart Way
Make your games work offline

Reply 17 of 21, by DosFreak

User metadata
Rank l33t++
Rank
l33t++

Actually it wasn't a lockup...it just took awhile to export the graphics. So modkeen works fine here as far as exporting the graphics goes. I'm using Modkeen v2.0.1.

How To Ask Questions The Smart Way
Make your games work offline