Mail Archives: djgpp/1996/04/29/02:06:32
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 -