- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear all,
I have the following C++ code that are called by Fortran program:
try
{
mycalculation();
}
catch(...)
{
return -1;
}
return 0;
However, it seems that the code can't catch the crash at 'mycalculation'. The crash has the following message displayed:
forrtl: severe (157): Program Exception - access violation
Could anyone help me to take a look at it?
Thanks,
Zhanghong Tang
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
>>>However, it seems that the code can't catch the crash at 'mycalculation'. The crash has the following message displayed:
forrtl: severe (157): Program Exception - access violation>>>
It seems that crash was handled before execution reached catch block. Access violation was signaled by the CPU and was propagated back to the application. Usually when debugger is not connected to the application default procedure will be process termination and log event writing by the OS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Does mycalculation() call any Fortran routines?
Jim Dempsey

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page