- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
It can also be caused by corruption of the regular stack due to a calling mechanism mismatch.

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