Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.

Questions on Exception handling

rahzan
New Contributor I
2,594 Views
I am fooling with the c-wrapper idea to catch runtime errors:

1. On the lines:
select case( recordInfo.ExceptionCode)
case(STATUS_FLOAT_DIVIDE_BY_ZERO)
....
I get:
Warning: Case selection values must fit within a signed 32 bit integer. Value truncated.
case(STATUS_FLOAT_DIVIDE_BY_ZERO)
which constants should one use which are 32 bit??

2. What is the use the "record Context"?
I see that it has a member called Flags and 7 others DR0-DR7 (data registers?) but I do not know what the constants to comapre them to, and what they mean.

3. After an exceptino, a call to TRACEBACK generates a DISPLAY of the error stack, I instead need to simply catch the line number of the failure and display my own error msg. Is there a way to just get the line number(s)? If not, is there a way to route the display of the TRACEBACK to a file or data structure to be parsed in code?

4. Steve: Do you know if this c-wrapper method is supported in IF7?

Thanks,
Tim

0 Kudos
23 Replies
gfthomas8
Novice
429 Views
That's straightforward enough.

Thanks,
Gerry T.
0 Kudos
Steven_L_Intel1
Employee
429 Views
I notice that VS.NET makes it harder to see project dependencies within a solution. In VC6, when you had a dependent project, it would show in the parent project's "files". No such visual indication in VS.NET - you have to know to look at the Project Dependencies dialog.

Steve
0 Kudos
gfthomas8
Novice
429 Views
Yes, I fully agree.

Thanks again,
Gerry T.
0 Kudos
Reply