- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Exception Handling
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2005 08:20 AM
тАО02-09-2005 08:20 AM
I'm working with an openVMS Alpha system (6.2, I think) and have a situation where a C program calls a Fortran subroutine. Inside the fortran procedure, the LIB$ESTABLISH call is made to handle exceptions.
My question is this: Assume an exception occurs in the Fortran subroutine. Control will then pass to the specified exception handler to do it's work. Once the exception handler has completed, where does control return to? Does it go back to the next line in the fortran subroutine? Does it return to the calling C routine?
Thanks in advance!!
-steve
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2005 10:51 AM
тАО02-09-2005 10:51 AM
SolutionI think you can do it either way. This link discusses it some:
http://h71000.www7.hp.com/doc/731FINAL/5841/5841pro_032.html
I think if your condition handler returns SS$_CONTINUE then it will return to the Fortran routine, either the line that caused the problem or the next one, depending on what it is.
Returning to the C program looks complicated in that description, but I think you can also use LIB$SIG_TO_RET to make it simple.
It's been many years since I've done this, but I hope these pointers help.
--Travis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2005 06:13 PM
тАО02-09-2005 06:13 PM
Re: Exception Handling
Where the condition handler returns to after dealing with the error, is entirely up to the way the condition handler is written. It can return to the statement following the one that caused the excption, it can return to the "caller of the establisher", or even unwind more call frames and return to somewhere else in the program. I think you have to have a thorough look at the handler.
Regards,
Kris (aka Qkcl)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2005 01:34 AM
тАО02-10-2005 01:34 AM
Re: Exception Handling
Thanks for the info and the link. I think from the information you gave I can get where I need to go.
Thanks!
-steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2005 01:37 AM
тАО02-10-2005 01:37 AM
Re: Exception Handling
You are right about needing to know what the condition handler is doing...and that's what I've got to write!
I should be able to figure out how to get it to return control to where I want upon return...I hope. If not I'm sure you guys will hear from me again!
Thanks for the great replies!
-steve