Catching forrtl:severe in C++

Catching forrtl:severe in C++

I have a Compaq Visual Fortran DLL written by someone else that I call from a C++ code. Sometimes the Fortran DLL dies with a forrtl:severe error (example, reading past the end of a file). I need to catch this signal/condition/exception/whatever in my C++ code so that the dying Fortran DLL doesn't take down the C++ program as well. Any way to do that? Thanks.

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Have you tried to enclose the Fortran call with try { } catch { } in your C++ code? If you have, what happened?

Do you have control over the Fortran source?

Greg Chien

Leave a Comment

Please sign in to add a comment. Not a member? Join today