Mail Archives: djgpp/1995/08/28/07:33:12
I noticed some odd out of memory errors. On a hunch, I wrote this code:
void main (void) {
char *test;
test=malloc(9000000);
if (test==NULL) {
printf ("Out of memory!");
}
}
And I got this:
C:\DJGPP\PGD> go32 memtest.cof
Out of memory!
C:\DJGPP\PGD> freenet.bat
I have 8 megs of ram. From what I understand about DJGPP (from the FAQ),
GO32 should automatically swap to disk as needed to handle nine megabytes
of array. But, it doesn't, even though there's plenty of space free on the
drive, and the temp environment variable is set according to instructions.
So... what the heck is going on? Have I found a bug?
Please reply by E-mail.
Thanks in advance.
--
.*. "Clouds are not spheres, mountains are not cones, coastlines are not
-() < circles, and bark is not smooth, nor does lightning travel in a
`*' straight line." ,------------------------------------------------
-- B. Mandelbrot | Paul Derbyshire (PGD) ao950 AT freenet DOT carleton DOT ca
- Raw text -