IsNaN throwing exception
From: Jonathan DeCarlo (anonymous_at_discussions.microsoft.com)
Date: 05/06/04
- Next message: chris_gerz_at_yahoo.com: "Re: Memory/Leak Tool?"
- Previous message: Tom_B: "Server handling of HTTP Get"
- Next in thread: Jon Skeet [C# MVP]: "Re: IsNaN throwing exception"
- Reply: Jon Skeet [C# MVP]: "Re: IsNaN throwing exception"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 6 May 2004 13:51:04 -0700
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.dll
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 DeCarlo
- Next message: chris_gerz_at_yahoo.com: "Re: Memory/Leak Tool?"
- Previous message: Tom_B: "Server handling of HTTP Get"
- Next in thread: Jon Skeet [C# MVP]: "Re: IsNaN throwing exception"
- Reply: Jon Skeet [C# MVP]: "Re: IsNaN throwing exception"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|