run-time error R6009: not enough space for environment

run-time error R6009: not enough space for environment

Post by Fran » Tue, 05 Aug 2003 21:42:02


for your FAQ:

On one WinXP prof. sp1 when starting my Clipper 5.3 apps, I get the error:

N:\vol_dat\aww>awwup
run-time error R6009
- not enough space for environment

This error only occures for Clipper Apps linked with exospace, not linked
with blinker.

Microsoft knowledgebase:
( http://www.yqcomputer.com/
rrcrun_6.asp)
C Run-Time Error R6009
not enough space for environment
There was enough memory to load the program, but not enough memory to create
the envp array.
Possible solutions
Increase the amount of memory available to the program.
Reduce the number and size of command-line arguments.
Reduce the environment size by removing unnecessary variables.
If your program uses the compact, large, or huge memory model, this error
may be avoided by using the LINK /CPARM:1 command-line option. This option
causes unused near heap space to be allocated to the far heap.

My Solution:
The size of my environment was 2584 Bytes ('set > set.txt' 'dir set.txt').
I've deleted two entries, so that the environment size now is 2475 and the
error is gone.

ciao
Frank
 
 
 

run-time error R6009: not enough space for environment

Post by valusoft » Tue, 05 Aug 2003 22:20:21

On Mon, 4 Aug 2003 14:42:02 +0200, "Frank"



snip


Thanks for sharing your experience Frank.

Regards,

Ross McKenzie
ValuSoft
Melbourne Australia