delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/05/01:59:36

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: how to free memory?
Date: Sat, 04 Jan 1997 11:52:59 -0800
Organization: Two pounds of chaos and a pinch of salt
Lines: 20
Message-ID: <32CEB51B.5C68@cs.com>
References: <5alsge$fj0$1 AT helios DOT man DOT lublin DOT pl>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp102.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Grzegorz Ludorowski wrote:
> 
> I've got a problem with "free" (or "xfree") routines - it's silly I know,
> but they seems not to work...
> I tried program listed below, and after freeing that "dummy" pointer,
> free memory doesn't change... If anybody coud test it and help.

This is the correct behavior.  Under DJGPP/DPMI, the use of memory is
highly optimized for speed and efficiency.  When you free a block of
memory, it is added to a pool of free memory blocks so that your program
can reuse them with very little overhead.  See chapter 15.2 of the FAQ
(v2/faq202b.zip from SimTel) for more information.

-- 
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I  |        fighteer AT cs DOT com         |
| Call me for your free AOL disk!  |   http://www.cs.com/fighteer   |
|  Chain letters, work-at-home schemes, free long distance, etc.,   |
|    are ILLEGAL!  Keep the Internet litter-free... don't SPAM.     |
---------------------------------------------------------------------

- Raw text -


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