Mail Archives: djgpp/1998/07/15/03:11:26
On Tue, 14 Jul 1998, Mariano Alvarez Fernández wrote:
> I saw in the docs _dpmi_yield calls int
> 2Fh, function 1680h. Do you know if it works with 16-bit programs too?.
It is documented to work with any program.
Please note that the stock library version of __dpmi_yield calls
Interrupt 2Fh by emitting an INT instruction. It turns out that doing
that with INT 2Fh hangs the calling program after it launches a child
DJGPP program, on certain rare variants of Windows 95 (seems like a
Windows bug). It has been determined that calling INT 2Fh via
__dpmi_int avoids this problem. So I suggest to write your own
version of __dpmi_yield that uses __dpmi_int, and use that (DJGPP
v2.02 will have this change in the library).
The last consideration pertains only to 32-bit DPMI programs such as
what DJGPP produces. I don't know if this problem exists in other
types of programs that can be run from a DOS box.
- Raw text -