Mail Archives: djgpp/1993/09/07/10:43:52
> 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.
- Raw text -