Date: Mon, 29 Apr 1996 08:55:00 +0200 (IST) From: Eli Zaretskii To: Justin Ward Cc: djgpp AT delorie DOT com Subject: Re: giving back dpmi memory?? In-Reply-To: Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.