Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Division by zero crashes on DEC should be avoidable!
@ 1998-03-06  5:00 Andrew Ellerton
  1998-03-06  5:00 ` Dag-Erling Coidan Sm�rgrav
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Andrew Ellerton @ 1998-03-06  5:00 UTC (permalink / 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



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~1998-03-09  5:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-03-06  5:00 Division by zero crashes on DEC should be avoidable! Andrew Ellerton
1998-03-06  5:00 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox