delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/15/10:16:07

Date: Wed, 15 Mar 2000 10:46:36 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Wojciech Galazka <wojciech DOT galazka AT polkomtel DOT com DOT pl>
cc: djgpp AT delorie DOT com
Subject: Re: loosing DOS memory by Windows NT
In-Reply-To: <8alrke$r1r$1@sunsite.icm.edu.pl>
Message-ID: <Pine.SUN.3.91.1000315104613.17230L-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 14 Mar 2000, Wojciech Galazka wrote:

> Perhaps it is possible to force to free selectors that were used by
> a a DPMI program and that program have just finished executing. If
> this were possible would it help?

This issue has come up before, you should be able to find it by
browsing the archives of djgpp and djgpp-workers.

In a nutshell, the problem is with the CS, PSP and a couple of other
special selectors which cannot be freed by the program itself, since
its code uses them up until the last moment.  This must be done by the
DPMI host when the client exits.

> I assume it is not possible to allocate more selectors as this is a limited
> resource

DJGPP programs don't allocate selectors, they are allocated by the
DPMI host, from its limited pool (the spec says it must be at least 4K
selectors, I think).

- Raw text -


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