Mail Archives: djgpp/1998/04/01/02:23:44
> > free them all (it's current CS/SS for example).
>
> This might be totally wrong, but from my reading of the exit code, it sure
> tries. It looks like it writes some 16-bit code to its transfer buffer whose
> job is to free the last selectors and memory block. Since this runs in real
> mode, it shouldn't need any selectors of its own. Am I missing something?
It does not run in real mode - it runs in 16-bit protected mode, and thus
still has selectors for CS, SS, env and PSP. Freeing any of those will
cause certain DPMI providers to crash.
> Do I understand correctly that, barring a bug in the DPMI server, selectors
> and such will be freed when the *parent* exits?
Yes, this is correct. Occassionally Windows gets confused and loses them
anyway - in which case it's time to reboot.
- Raw text -