Mail Archives: djgpp/1996/11/18/22:12:14
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 -