From: Andrew Ellerton <andrewe@ned.dem.csiro.au>
Subject: Division by zero crashes on DEC should be avoidable!
Date: 1998/03/06 [thread overview]
Message-ID: <34FF7719.41C6@ned.dem.csiro.au> (raw)
Dear All,
This is possibly a simple question:
On other UNIX platforms the application I have to port
to DEC works fine - including handling division by zero
with only a warning, presumably using not-a-number (NaN)
or INF symbols as the result. Sure, I know it should
never try to divide by zero, but it does.
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?
Any help most appreciated!
Regards,
Andrew
--
Andrew Ellerton andrewe @ ned.dem.csiro.au
Technical Consultant Ph 08 9389 8421 F 08 9389 1906
Currently at CSIRO Mobile 0417 931 858
Division of Exploration and Mining http://www.ned.dem.csiro.au
next reply other threads:[~1998-03-06 5:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-03-06 5:00 Andrew Ellerton [this message]
1998-03-06 5:00 ` Division by zero crashes on DEC should be avoidable! Dag-Erling Coidan Sm�rgrav
1998-03-06 5:00 ` Michael C. Grant
1998-03-06 5:00 ` Jeffrey J. Potoff
1998-03-09 5:00 ` Dan A. Mercer
1998-03-06 5:00 ` John Wilson
1998-03-06 5:00 ` mathog
1998-03-06 5:00 ` Michael C. Grant
1998-03-06 5:00 ` Pierre Asselin
1998-03-08 5:00 ` Michael C. Grant
1998-03-06 5:00 ` Daniel S. Riley
1998-03-06 5:00 ` Ron Natalie
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox