delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/05/10/08:16:01

Date: Tue, 10 May 94 08:12:30 -0400
From: dj AT ctron DOT com (DJ Delorie)
To: ronis AT onsager DOT chem DOT mcgill DOT ca
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: malloc under DV/X

> I use djgpp under Desqview/X.  For the most part, I use it when I need to 
> access large arrays.  Thinks work correctly, but I've noticed that malloc
> allocates system memory irreversibly; for example, free doesn't seem to return
> the memory to the system (DV/X) until the program exits, or if I have a large
> local array in a function, this memory is not returned to the system when
> the program exits.
> 
> Is this correct?

Yes.

>  If so, can it be overridden?

You can write your own version of malloc() that *may* be able to
return memory, but due to the memory management scheme of djgpp it's
usually not possible to do so.


- Raw text -


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