Path: utzoo!attcan!utgpu!watmath!maytag!watstat!dmurdoch From: dmurdoch@watstat.waterloo.edu (Duncan Murdoch) Newsgroups: comp.sys.ibm.pc Subject: MS Fortran v 5.0 error trapping Message-ID: <319@maytag.waterloo.edu> Date: 24 Jul 89 17:43:40 GMT Sender: daemon@maytag.waterloo.edu Reply-To: dmurdoch@watstat.waterloo.edu (Duncan Murdoch) Organization: U. of Waterloo, Ontario Lines: 15 Summary:Can Microsoft Fortran recover from numeric errors? (This is a repost from alt.msdos.programmer - I didn't get any replies there. Sorry if anyone has had to read it twice!) I've just bought Microsoft Fortran version 5.0, in order to work with a function minimizing program that was written for a mainframe. My program works, mostly, but occasionally aborts with overflows or out of range values. On the HP3000 where it last ran it was possible to trap each of these errors, set a flag, and return a default value, so the program could continue on. In the MS Fortran manual, the only mention of error trapping that I can find has to do with I/O errors. Is it really impossible to trap calculation errors in MS Fortran? Duncan Murdoch