Mail Archives: djgpp/1998/01/25/04:44:39
On Sat, 24 Jan 1998, Andreas Bierhals wrote:
> DJGPP library functions don't release the free'd block back
> to the system memory.
>
> - Does this also apply for _go32_dpmi_remaining_virtual_memory() ?
Yes. The free'd memory is not returned to the system, it is left
allocated to the running program. So neither physical nor virtual
memory sees the deallocation, because these reports come from the DPMI
server that is external to the program you run.
> - How do I really get the total amount of free memory using
> the functions in dpmi.h ?
You can't. You will need to hack the sources of `malloc' and `free',
or use a replacement `malloc' library.
- Raw text -