delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/06/11:38:04

From: Paul Richards <Paul AT dunvegan1 DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Dynamic memory allocation
Date: Thu, 6 May 1999 14:48:43 +0100
Organization: Paul's house
Message-ID: <Mg2QsJA72ZM3EwWg@dunvegan1.demon.co.uk>
References: <nuG6vBA7fXM3EwSv AT dunvegan1 DOT demon DOT co DOT uk>
<37319029 DOT C14E8B7C AT softhome DOT net>
NNTP-Posting-Host: dunvegan1.demon.co.uk
X-NNTP-Posting-Host: dunvegan1.demon.co.uk:193.237.111.243
X-Trace: news.demon.co.uk 926003526 nnrp-09:19019 NO-IDENT dunvegan1.demon.co.uk:193.237.111.243
X-Complaints-To: abuse AT demon DOT net
MIME-Version: 1.0
X-Newsreader: Turnpike (32) Version 4.01 <5Y9PmoTxnkdx6tAFcQ+gcCx86I>
Lines: 16
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Chris Mears writes,
>I *think* that when your program stops running, all the memory it used
>(whether you freed it or not) is given back to the OS.  The reason you
>free memory explicitly in your program is so you can re-use it again (in
>the same program).
So the DPMI memory "server" keeps a track of what I allocate and then
when my program quits it clears up after me?

>I *think*.
Well it sounds ok to me.
-- 
Paul Richards (AKA Pauldoo)
EMAIL   paul AT dunvegan1 DOT demon DOT co DOT uk
FAX     +44 (0)870 0522086
HTTP    www.dunvegan1.demon.co.uk/paul/
ICQ     14106503

- Raw text -


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