Mail Archives: djgpp/2000/03/15/10:16:07
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 -