- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi
when i execute my program i get a very weird problem. when I debug it, it seems that it reaches the end of a subroutine, but doesn't execute whatever's behind it.
...
call subroutine1
write(*,*) 'test'
...
subroutine subroutine1
...
end subroutine subroutine1
so the breakpoint at the "end subroutine" statement is reached, but it never reaches the "write" statement
the program stops with "forrtl: severe (157): program exception - access violation"
"stack trace terminated abnormally"
and
First-chance exception at 0x004e1b75 in fs_la_1d_eemission_nr.exe: 0xC0000005: Access violation reading location 0x00000000.
Unhandled exception at 0x00000006 in fs_la_1d_eemission_nr.exe: 0xC0000005: Access violation reading location 0x00000006.
Any help would be greatly appreciated
Thanks in advance
when i execute my program i get a very weird problem. when I debug it, it seems that it reaches the end of a subroutine, but doesn't execute whatever's behind it.
...
call subroutine1
write(*,*) 'test'
...
subroutine subroutine1
...
end subroutine subroutine1
so the breakpoint at the "end subroutine" statement is reached, but it never reaches the "write" statement
the program stops with "forrtl: severe (157): program exception - access violation"
"stack trace terminated abnormally"
and
First-chance exception at 0x004e1b75 in fs_la_1d_eemission_nr.exe: 0xC0000005: Access violation reading location 0x00000000.
Unhandled exception at 0x00000006 in fs_la_1d_eemission_nr.exe: 0xC0000005: Access violation reading location 0x00000006.
Any help would be greatly appreciated
Thanks in advance
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The usual response to this sort of problem is that the problem lies elsewhere in the code (memory corruption)
(a) do you have array bounds checking switched on ?
(b) do you have "implicit none" in your code ?
(c) check for argument mismatches ?
Les
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, I have included the implicit none statement and now it works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Well that on its own wouldn't fix the problem. What else did you change?
Les

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