Mail Archives: djgpp-workers/2000/05/01/03:27:16
On Thu, 27 Apr 2000, Pierre Muller wrote:
> When I run a simple code that creates a FPU exception by a
>
> j:=j/e;
>
> where j and e are double and e has 0.0 value;
>
> I get a nice FPU exception,
> but if I redirect the output of this code using DJGPP redir executable
> it does not work anymore :(
>
> The exception seems to be sent to the redir executable rather than to the
> correct executable !
Yes, it looks like Windows doesn't support FP exceptions in nested
DPMI programs; the exception seems to be delivered to the parent
instead.
If the parent program is a 16-bit real-mode program or COMMAND.COM,
the FP exception does happen in the program that divides by zero, but
if COMMAND.COM is invoked from a DJGPP program, the exception is also
lost.
- Raw text -