From: Paul Richards 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: References: <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