Your attitude is somewhat unattractive here, especially since you're wrong. There is a compiler flag to disable floating-point exceptions of this type; catching signals is a slow and unnecessarily complex solution to the problem. In most scientific contexts, dividing by zero is not only legal but a very nice idiom. Working with infinity is not particularly difficult. In fact, IEEE floating-point standards allow it. What the poster does not know is that there is a compiler flag in DEC C++ that allows division by zero and other floating-point exceptions to go unreported. It is on by default because, admittedly, many people such as yourself and others _don't_ intend to divide by zero---so those of us that do should know enough to enable it. I _disagree_ with DEC's choice here, but so be it. Michael Dag-Erling Coidan Sm�rgrav wrote in message ... >Andrew Ellerton writes: >> However, the C++ code will crash the entire application >> on the DEC 4.0 version when it divides by zero. Is this >> solvable by (for example) compiling with a certain switch? >> Or is there any other way to stop it from crashing, or do >> I have to resort to modifying the code? > >Don't do that, then. > >Honestly, you're complaining that your program is crashing when you're >doing something illegal?