www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/07/07:57:32

From: "Christopher Nelson" <paradox AT gye DOT satnet DOT net>
To: <djgpp AT delorie DOT com>
Subject: Re: Dynamic memory allocation
Date: Thu, 6 May 1999 16:56:17 -0600
Message-ID: <01be9813$a68b4c20$LocalHost@thendren>
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.71.1712.3
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
Reply-To: djgpp AT delorie DOT com

>I was gonna see what happens to memory that doesn't get freed and also
>what happens when you run out.  Well when I run it there is a long
>stretch of thrashing the HD (making swapfile?) and then it says "ran out
>of virtual memory for 'new'" or something similar.  The program stops
>after that message but what happened to all the memory that I allocated?
>Is it still allocated and Win95 has just paged it into the swapfile?


IIRC, no. what happens is that, when your program terminates it tells the
DPMI server, and the server releases all your memory back to the system.  it
obviously knows about all your allocations, so it can put them to rights.

    -={C}=-

- Raw text -


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