- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Steve - I'm still having problems with this. Can I e-mail Bill dircetly to continue this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Send mail to vf-support@compaq.com - which is what you should do if you are asking Compaq for help.
Steve
Steve

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page