www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/29/02:06:32

Date: Mon, 29 Apr 1996 08:55:00 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Justin Ward <justin AT yoss DOT canweb DOT net>
Cc: djgpp AT delorie DOT com
Subject: Re: giving back dpmi memory??
In-Reply-To: <Pine.BSF.3.91.960428145406.27810A-100000@yoss.canweb.net>
Message-Id: <Pine.SUN.3.91.960429085108.472E-100000@is>
Mime-Version: 1.0

On Sun, 28 Apr 1996, Justin Ward wrote:

> I have a program compiled with djgpp 2.0. It needs to spawn other programs,
> some of which are real mode programs which depend on finding free
> XMS/EMS. Now the real-mode part is no problem at all. But how do I
> free up all the unused dpmi memory so that other programs can find free
> xms?

If by ``unused dpmi memory'' you mean the memory not used by the parent 
DJGPP program, then that should be automatic: DPMI host usually only 
takes what it currently needs and leaves the rest free.  If you want to 
free *all* of the XMS (meaning to swap the parent completely out of RAM), 
that could be harder and even depend on the particular DPMI host that you 
use.  AFAIK, Windows will swap parts of the parent when it needs more 
memory, but I'm unsure about other DPMI hosts.

- Raw text -


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