Mail Archives: djgpp/1994/05/10/08:16:01
> 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 -