www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/02/11/07:56:39

Date: Sun, 11 Feb 1996 14:47:31 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Greg Vilardi <vilardi AT panix DOT com>
Cc: djgpp AT delorie DOT com
Subject: Re: Memory exhausted message in V2B4

On 8 Feb 1996, Greg Vilardi wrote:

> Hi everyone. I'm trying to build my company's product under djgpp v2b4, 
> and when I turn off optimization, I get a message from ld saying:
> 
> >c:/djv2b4/bin\ld.exe: final link failed: Memory exhausted
> 
> It is a large project, but I'm running on a 486DX/2-50 with 8Megs, using
> 386max v7.00 with a 10 meg virtual memory file. Do I need to send this
> whole mess home to my trusty 386DX40 with 20Meg and about 500 Meg
> available for swap? ;-) Or do I need to get the full djgpp v2 release

Invoke the go32-v2.exe program (it should be in your bin/ subdirectory) 
without arguments and see what it prints as the available amount of 
memory.  That is what DJGPP programs can get on your system as it's set 
up right now.  If it prints an amount that's close to the physical+free 
disk space you have, then the link stage indeed needs more than you can 
give it; in that case, better free up some additional disk space.

If, however, go32-v2 prints less than what you expect, then perhaps you 
didn't configure your DPMI server (386Max) to make enough memory 
available.  You can either change the 386max setup (I don't know how) or 
disable its DPMI services and let DJGPP use CWSDPMI (if you don't have 
it, get csdpmi1b.zip from the v2misc/ directory of the DJGPP tree on 
SimTel mirrors).

> ;-) how many files can be physically open at one time under v2? Our 
> database manager wants 50, so do I need to bump up a parameter somewhere 
> and rebuild a library?

DJGPP allows upto 250 handles (plus the 5 standard ones, for the grand
total of 255, which is the maximum number DOS would allow), provided that
your CONFIG.SYS doesn't restrict this value. If your program needs 50
handles, set FILES= to 60 or more on your CONFIG.SYS and you should be OK. 

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019