Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Memory issue with DOS based application

Status
Not open for further replies.

brooza

Technical User
Dec 15, 2012
1
0
0
AU
Hi,

I'm running a DOS based application on Windows XP. Opening the program and navigating through the application menu's is not a problem. The brick wall I've hit is when I try to print within the DOS application. I get the following error message: "NOT ENOUGH MEMORY. Press Any Key to Continue".
I had Windows 7 installed on this same PC a couple of days ago and I was able to print. I've had to go back to Windows XP for other reasons and now I've hit this blocker. I've tried doing the same thing on another XP and vista machine and I get the same error.

Not sure if the following will assist:

------------- --------------------- -------------
MSDOS 12000 ( 11.7K) 2EE0
KBD 3296 ( 3.2K) CE0
HIMEM 1248 ( 1.2K) 4E0
MOUSE 12528 ( 12.2K) 30F0
COMMAND 3616 ( 3.5K) E20
COMMAND 4224 ( 4.1K) 1080
MSCDEXNT 464 ( 0.5K) 1D0
REDIR 2672 ( 2.6K) A70
DOSX 34848 ( 34.0K) 8820
PRN2FILE 7136 ( 7.0K) 1BE0
FREE 112 ( 0.1K) 70
FREE 572848 (559.4K) 8BDB0

Total FREE : 572960 (559.5K)

Total bytes available to programs : 572960 (559.5K)
Largest executable program size : 572000 (558.6K)

32505856 bytes total contiguous extended memory
0 bytes available contiguous extended memory
15375360 bytes available XMS memory
MS-DOS resident in High Memory Area

If there is any other information that is required, let me know and I will get it.

Thanks
Brooza
 
Your mem /c output looks much like what I get from an XP box here, except:
- You have a TSR PRN2FILE resident which I don't (likely used for DOS printing)
- Yours shows a lot of memory (Extended and XMS) available. Mine is under 2 meg for both.

Some DOS programs can't deal with too much memory, and the symptom is often a bogus insufficient memory error. Try limiting the extended memory available to the app.
(ref: "Configuring the DOS Environment" )

Other than that, possibly insufficient DOS file handles; try adding a line "files=50" to the end of c:\windows\config.nt to allow for 50 handles.

Jock
 
Did you change permissions at all when you reinstalled? That not enough memory error can also be because there is insufficient 'write' rights wherever the app is trying to write a temp file.


-Dave Summers-
[cheers]
Even more Fox stuff at:
 
Another way of doing this is through VMs. Download something like VMWare. Install XP but only give it something like 64 or 128Mb RAM. Then try running your program from there.

Alternatively install DOS or Win95/98 in the VM and run with that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top