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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run-time error R6009

Status
Not open for further replies.

N9682A

Programmer
Apr 8, 2002
6
US
I get the following error when trying to run my clipper app, even after rebooting the PC:

Run-time error R6009 - not enough space for environment

My Clipper 5.3 app is 714K, linked with Exospace for Clipper 5.3.

I'm running on an IBM PC with:
- Windows XP Service Pack 1
- Pentium 4 processor at 2.53 GHz
- 1 GB of RAM

Task Manager shows me the CPU at 0% and 720K of physical memory available.

Any suggestions?
 
What are you running that is using 999,280 KB?

Environment is a OS issue. I don't have access to XP here at work, but there should be an entry in XP's help as to increasing the memory allocated to the environment.

Regards,

Mike
 
Hi, N9682A

Your program must be using a lot of environment space.

To set the environment:

- Set up a shortcut to invoke your program
- Right click on the shortcut
- Click on Properties
- Click the memory tab
- In there you will see a value for initial environment. It may be Auto. Make it 4096 or whatever the max is. I have often found problems with Auto.
- Click on apply

Also set up the shortcut not to close on exit so you can see any errors.

Now try running your program using the shortcut.

If you want to run your program from the command line for whatever reason, set up your shortcut to point to c:\windows\system32\command.com instead of cmd.exe and then you will have the memory tab available as above.

You could also accomplish this by editing the comspec environment variable and adding a /e:#### parameter, but that would apply to all DOS windows, which may not be desirable.

Having said all this, I will be surprised if it helps because it is really unusual to have to allocate a larger environment. It may be a linking, overlay or memory allocation problem.

Mike, I suspect he meant 720K K ie 720 meg free.

Jock
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top