Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Signal Handling

acar
Beginner
576 Views
I would like to trap unforseen errors in my application and have found the SIGNAL function. I note however that it appears only deals with seven of the possible 34 errors listed in:
I wonder, if for completeness, I have to write the C routine (op cit) in order to catch all possible errors?
Thanks, ACAR
0 Kudos
1 Solution
Steven_L_Intel1
Employee
576 Views
I don't have that information handy. You might try some web searches for info on using Windows structured exception handling (SEH). The error numbers are documented in the MSDN Library

View solution in original post

0 Kudos
3 Replies
Steven_L_Intel1
Employee
576 Views
That paper is Linux-specific and does not apply to Windows.

If you want to catch all signaled errors, you will have to write a C wrapper that establishes a handler block and then calls the Fortran code.

Note that I/O errors are not signaled and cannot be handled.
0 Kudos
acar
Beginner
576 Views
Thanks for that Steve. I wonder if you have any references to such a C wrapper for handling Windows signalled errors that might give me a pointer to how to write this routine and what the signal numbers mean?
0 Kudos
Steven_L_Intel1
Employee
577 Views
I don't have that information handy. You might try some web searches for info on using Windows structured exception handling (SEH). The error numbers are documented in the MSDN Library
0 Kudos
Reply