www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/28/20:39:56

From: j DOT aldrich6 AT genie DOT com
Message-Id: <199604290017.AA083747065@relay1.geis.com>
Date: Mon, 29 Apr 96 00:09:00 UTC 0000
To: djgpp AT delorie DOT com
Mime-Version: 1.0
Subject: Re: giving back dpmi memory??

Reply to message 3703662    from JUSTIN AT YOSS DOT C on 04/28/96  2:56PM


>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?

When your program spawns any other program, the DPMI host swaps it
out as necessary to provide the memory the spawnee requests.  This
includes real-mode programs, as far as I know.  Just make sure you
have enough swap space.

BTW, be thankful that you are using v2 and not v1.2 - the latter swapped
the ENTIRE program out each time any other program was spawned,
resulting in utterly abominable performance.  :)

John

- Raw text -


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