[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: catching divide by zero
- From: Coda Highland <chighland@...>
- Date: Sun, 15 Dec 2013 14:39:03 -0800
On Sun, Dec 15, 2013 at 7:22 AM, Andy Colson <andy@squeakycode.net> wrote:
> Ah, I found it. You can SetExceptionMask() to disable FPU exceptions:
>
> http://stackoverflow.com/questions/8729235/teventobject-and-webbrowser
Be careful with that. It works, yes, and it's USUALLY safe, but if any
libraries you're using are depending on the exceptions to be fired
that could cause side effects. (That said, if you're not using a math
library, it probably doesn't care.)
/s/ Adam