• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

run-time error R6009

R2D2

Senior member
I have an old DOS program that won't run in XP without some environment tweaking. I get a run-time error R6009 (not enough space for environment).

I had it fixed once by altering something in either the command line (in the shortcut), or changing something in the CONFIG.NT file or other. I just can't find what it is.

I'm pretty sure it had something to do with memory. Boy I'd sure appreciate some direction here.
Thanks, R2

WinXP SP1.
 
Have you tried just running it in DosBox? It's been a very successful emulator, able to run one program I have that doesn't always work with XP and another program that was sketchy in Win98 and impossible in XP.
 
I've tried running it from a Command Prompt within XP, but no-go either.

Here's my AUTOEXEC.NT:

@echo off

REM AUTOEXEC.BAT is not used to initialize the MS-DOS environment.
REM AUTOEXEC.NT is used to initialize the MS-DOS environment unless a
REM different startup file is specified in an application's PIF.

REM Install CD ROM extensions
lh %SystemRoot%\system32\mscdexnt.exe

REM Install network redirector (load before dosx.exe)
lh %SystemRoot%\system32\redir

REM Install DPMI support
lh %SystemRoot%\system32\dosx



Here's my CONFIG.NT:

dos=high, umb
device=%SystemRoot%\system32\himem.sys
files=40



All parameters in the desktop Shortcut are at default (Command Line, Memory, Performance, etc), except "Close on Exit" is disabled.

I'm pretty sure it has something to do with memory allocation (too bad my own memory is so bad!)
R2
 
Back
Top