delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/08/28/07:33:12

Xref: news-dnh.mv.net comp.os.msdos.djgpp:1786
Newsgroups: comp.os.msdos.djgpp
Path: news-dnh.mv.net!mv!news.sprintlink.net!howland.reston.ans.net!torn!nott!cunews!freenet.carleton.ca!FreeNet.Carleton.CA!ao950
From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
Subject: PROBLEM: virtual ram virtually nonexistent!
Sender: ao950 AT freenet2 DOT carleton DOT ca (Paul Derbyshire)
Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
Organization: The National Capital FreeNet
Date: Mon, 28 Aug 1995 03:01:08 GMT
Lines: 35
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Dj-Gateway: from newsgroup comp.os.msdos.djgpp



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 -


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