www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/11/18/22:12:14

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: RHIDE question
Date: Mon, 18 Nov 1996 18:31:38 -0800
Organization: Three pounds of chaos and a pinch of salt
Lines: 30
Message-ID: <32911C0A.5416@cs.com>
References: <328B83A0 DOT 2143 AT dt DOT enel DOT it> <328C5482 DOT 2B06 AT Mathematik DOT tu-chemnitz DOT de> <Pine DOT A32 DOT 3 DOT 93 DOT 961117160206 DOT 56302B-100000 AT srv1 DOT freenet DOT calgary DOT ab DOT ca>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp108.cs.com
Mime-Version: 1.0
To: Calvin French <french AT freenet DOT calgary DOT ab DOT ca>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Calvin French wrote:
> 
> > > it gives me an "OUT OF MEMORY".
> > > FAQ of documentation say nothing, any suggestions ?.
> 
> In TC I used to get this error every time I compiled, and I couldn't
> figure out why, until I realized what was happening was I had an include
> file which unwittingly included itself. What happens is the compiler keeps
> opening that file and allocating virtual tables (or whatever, I'm not
> really compiler-lingo-literate) until BOOM you reach the bottom of the
> heap. If you have less than 4megs it might just be an honest memory
> problem, but I have no problems compiling under the new RHIDE and I have
> (only) 4megs... Not sure what the problem is but maybe I can save you some
> hassle...

That problem cannot happen with the DJGPP distribution includes, because
they use defines to prevent themselves from being included more than
once.  Also, if the preprocessor does indeed keep opening the same file
multiple times, your system should run out of file handles long before
it runs out of memory...

-- 
John M. Aldrich, aka Fighteer I <fighteer AT cs DOT com>

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS d- s+:- a-->? c++>$ U@>++$ p>+ L>++ E>+ W++ N++ o+ K? w(---) O-
M-- V? PS+ PE Y+ PGP- t+(-) 5- X- R+ tv+() b+++ DI++ D++ G e(*)>++++
h!() !r !y+()
------END GEEK CODE BLOCK------

- Raw text -


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