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

building a library

Deleted_U_Intel
Employee
518 Views

I am getting some run time fatal errors that appear to be associated with a subroutine library that I have been building over the years. It contains routines that I have developed but also routines that I copied out of Numerical Recipes. Until now all of the routines have worked very well. When I migrated to Visual Fortran Compiler (Professional edition) version 10.0, I simply copied the library file (mylib.lib) to a newfolder and add the file to my projects as needed.

Upon debugging my application, it appears that the subroutine (a simple ranking algorithm) works proper at first and then begins to generate ranking values well out of range.

Please advise.

John

0 Kudos
1 Reply
Steven_L_Intel1
Employee
518 Views
The first thing I would do is turn on the "Check floating point stack" option and rebuild the application. If you get an access violation during execution, that indicates that the FP stack got corrupted just before that point. Usually this is due to calling a function as a subroutine or the other way around.

It can also be caused by corruption of the regular stack due to a calling mechanism mismatch.
0 Kudos
Reply