Mail Archives: djgpp-workers/2001/12/11/03:16:29
On Mon, 10 Dec 2001, Charles Sandmann wrote:
> > So, are you saying that the W2K DPMI host returns a bogus selector
> > when we allocate DOS memory? Another W2K bug? ;-)
>
> No, it's a valid selector, but it's not a valid "internal NTVDM identified
> PSP for talking with DPMI/DOSX".
Ah, but invoking a program via go32-v2 is not really nesting, as far
as the DPMI host and NTVDM are concerned, right? To them, this looks
like a single crazy DOS program which just likes to longjmp and lcall
too much.
So perhaps the cleanup code which tries to fix NTVDM should detect
this situation and do nothing.
> I wrote the original versions of all that stuff so I remember :-)
I think the original version didn't allocate all those additional DOS
buffers. Perhaps I'm mistaken.
> And it hasn't changed radically ... For go32-v2 we don't ever return
> to the go32-v2 image! So, when we set the bogus PSP nothing gets
> cleaned up properly.
Right, that's the reason.
> Now, has dosexec or make been enhanced to run the .exe instead of
> calling go32-v2 in cvs
Yes, I think so. If so, this is why it doesn't happen with the CVS
version: we simply don't invoke go32-v2 (which is a Good Thing by itself).
- Raw text -