Date: Tue, 7 Sep 93 09:53:45 -0400 From: DJ Delorie To: HARNESS AT i1 DOT ph DOT gla DOT ac DOT uk Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: malloc question > I have partially solved this problem now that I've re-read the djgpp > documentation but still have one query. My understanding of memory > allocation under djgpp is that when physical memory runs out, disk > space can be used as virtual memory. > However, malloc seems to allow me to allocated more space than my > memory plus available diskspace. Upon use of the allocated space strange > things happen!! Is it possible to use set things up so that only > physical memory is used? And should malloc return NULL if there isn't > enough space altogether (physical and disk)? Making malloc() return NULL when memory is exhausted has been implemented in 1.11. I'm still contemplating a flag that will allow the old functionality.