From: "Edmund Horner" Newsgroups: comp.os.msdos.djgpp References: <384411007 DOT 969036196326 DOT JavaMail DOT root AT web305-mc DOT mail DOT com> Subject: Re: free() DOESN'T return memory to system Lines: 35 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Organization: Paradise Net Message-ID: <969078416.841936@shelley.paradise.net.nz> Cache-Post-Path: shelley.paradise.net.nz!unknown AT 203-96-159-180 DOT tnt5 DOT paradise DOT net DOT nz X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/) Date: Sat, 16 Sep 2000 16:29:17 +1200 NNTP-Posting-Host: 203.96.152.26 X-Complaints-To: newsadmin AT xtra DOT co DOT nz X-Trace: news.xtra.co.nz 969078418 203.96.152.26 (Sat, 16 Sep 2000 16:26:58 NZST) NNTP-Posting-Date: Sat, 16 Sep 2000 16:26:58 NZST To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Who's actually asking the question here? :) I don't think you can explicitly return memory to the system, but then, I am not sure it would be very useful to anyway. If you're running under DOS, you'll only have one task happening anyway, and if you're under Win9x, the OS will give each task as much as it needs, anyway. But if you're really serious on this, you may be able to extend the DPMI server and the memory functions to allow this... but I don't think it'll be easy! Edmund. "J Almeida" wrote in message news:384411007 DOT 969036196326 DOT JavaMail DOT root AT web305-mc DOT mail DOT com... > Hi, > > Faq15_2.html clearly states that: "When you call free, DJGPP library doesn't > return memory to the system, it just adds it to its internal pool of free > pages. So, from the point of view of the DPMI server, these pages are not > "free"." > My question is: > Isn't there a way to ensure that DJGPP _does_ return memory to the system? > Like _heapmin() in MS Visual C. > Can someone help? > Thanks. > > > ______________________________________________ > FREE Personalized Email at Mail.com > Sign up at http://www.mail.com/?sr=signup >