G
Guest
Hi all
An ArithmeticException is being thrown when I call Double.IsNaN() on a double whose value is NaN. The text of the exception is:
"A first chance exception of type 'System.ArithmeticException' occurred in mscorlib.dl
Additional information: Overflow or underflow in the arithmetic operation.
This bug is hard to reproduce, but once and a while I get an unhandled exception, and Double.IsNaN() is the culprit. And when it does happen, even if I handle that exception in that location, it seems like every other call to Double.IsNaN() now throws the exception when the parameter value is NaN. Also, all of the projects in my solution have the "Check for Arithmetic Overflow/Underflow" option set to false
Does anyone know what conditions cause Double.IsNaN() to throw this exception
Thanks in advance for any help on this matter
Sincerely
Jonathan DeCarl
An ArithmeticException is being thrown when I call Double.IsNaN() on a double whose value is NaN. The text of the exception is:
"A first chance exception of type 'System.ArithmeticException' occurred in mscorlib.dl
Additional information: Overflow or underflow in the arithmetic operation.
This bug is hard to reproduce, but once and a while I get an unhandled exception, and Double.IsNaN() is the culprit. And when it does happen, even if I handle that exception in that location, it seems like every other call to Double.IsNaN() now throws the exception when the parameter value is NaN. Also, all of the projects in my solution have the "Check for Arithmetic Overflow/Underflow" option set to false
Does anyone know what conditions cause Double.IsNaN() to throw this exception
Thanks in advance for any help on this matter
Sincerely
Jonathan DeCarl