- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to complice a program written in Fortran 66 in CVF. The original user's manual said that it should compile in 77, however. I have run into a reoccuring error and I'm not sure what the source is.
severe(157) : Program exception - access violation
I have the /check:nobounds option on because of the "tricks" the original programmer used. I read Steve's article in the Visual Fortran newsletter, which lead me notice that several arrays were dimensioned with (0). For example,
DO 60 ID=1,18
TITLE(ID) = AREAD(0)
60 CONTINUE
This happens several times through out the program, and I'm not sure if it could be causing the error or if it's something else. Also, I'm not sure how to fix it without drastically changing a long and complicated program. Any suggestions or tips?
Thanks
severe(157) : Program exception - access violation
I have the /check:nobounds option on because of the "tricks" the original programmer used. I read Steve's article in the Visual Fortran newsletter, which lead me notice that several arrays were dimensioned with (0). For example,
DO 60 ID=1,18
TITLE(ID) = AREAD(0)
60 CONTINUE
This happens several times through out the program, and I'm not sure if it could be causing the error or if it's something else. Also, I'm not sure how to fix it without drastically changing a long and complicated program. Any suggestions or tips?
Thanks
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Using an array index of 0 isn't necessarily an error, but it could be, especially if the actual array was declared as having a lower bound of 1. I'd need to see the whole program to know for sure. Send it as a ZIP file attachment to us at [email protected] and we'll take a look.
Steve
Steve
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