Software Archive
Read-only legacy content
17061 Discussions

Catching forrtl:severe in C++

Intel_C_Intel
Employee
556 Views
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.
0 Kudos
1 Reply
gchien
Beginner
556 Views
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?

Regards,
Greg Chien
http://protodesign-inc.com
0 Kudos
Reply