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

program exception - access violation - Error 157

hydrodyn
Beginner
476 Views
Hi,
I have transferred all my CVF hydrodynamics computer code to Intel Visual Fortranon windows.
The code is available in different static libraries (using subroutine, function and entry statements).
Finally I got the executable and while debugging, I am getting program exception error.
This error always happens at the subroutine or entry statment. How can I solve this problem.
Also, in the debug mode, the console window does not get closed after stopping the debugging.
I have searched the forum and found out that there are many questions related to exception error.
But I could not find any error that is happening right at the entry of the subroutine or entry statement.

Thanks
Venkat
0 Kudos
1 Reply
Steven_L_Intel1
Employee
476 Views
You can start with this article. I suggest also trying this - set the project property Fortran > Optimization > Heap Arrays to 0. You'll need to do this in the project where the error occurs. However, I would normally expect you to get a stack overflow rather than access violation.

The other problem could be is if your code is mixed-language and assumes CVF calling conventions, such as where string lengths are passed.
0 Kudos
Reply