Date: Mon, 12 Aug 1996 12:58:34 +0200 (IST) From: Eli Zaretskii To: Thomas Demmer Cc: djgpp AT delorie DOT com Subject: Re: Freeing and not freeing Windoze memory In-Reply-To: <320EE6EF.41C6@LSTM.Ruhr-UNI-Bochum.De> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 12 Aug 1996, Thomas Demmer wrote: > > It is the same under any operating system. When a program exits, all its > > memory is freed by the OS. > > This is not always true. If you get DosMem via Int21h/??, the function > number I forgot, the memory remains occupied. Otherwise TSRs would not > really work. A TSR does not exit, it stays resident, so it must release memory explicitly. A program that *really* exits, doesn't have to do that.