Software Archive
Read-only legacy content

Error handling

Intel_C_Intel
Employee
671 Views
My FORTRAN code has a C++ COM layer. Calls to run my FORTRAN models are in a __try __except structure but I can't get my FORTRAN to raise exceptions. I've set /fpe:0 but it still calculates divide by zero as infinity - what am I doing wrong?
0 Kudos
3 Replies
Steven_L_Intel1
Employee
671 Views
Bill Hilliard (our exception handling expert)asked me to post this:

I assume you don't have a Fortran main program. In that case, you need to
compile with /fpe:0 as you are doing, but you must take the additional step
of unmasking traps in the x86 floating point control register as well.
Please see the CVF Programmer's Guide chapter on Advanced Exception and
Termination Handling for a detailed discussion of the fpe option. You'll
also find information on how to unmask the traps in there as well.
0 Kudos
Intel_C_Intel
Employee
671 Views
Steve - I'm still having problems with this. Can I e-mail Bill dircetly to continue this?
0 Kudos
Steven_L_Intel1
Employee
671 Views
Send mail to vf-support@compaq.com - which is what you should do if you are asking Compaq for help.

Steve
0 Kudos
Reply