- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I receive the following error and my code does not run at all when I increase the number of calculation steps
" forrtl : severe (157) : Program Exception - access violation "
This is while it runs OK when the calculation steps are less. Does anybody know what is it referring to and how can I solve it?!
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your useful advice.
I did as you told and run it in the debug mode. It is in one of the intrinsic functions that the code stops. It is where I wanna find the location, i.e. index, of the minimum value of a 1D array of length 5000; for example "real*8 a(5000)".I use "minloc(a)" and there it stops and prompts that error I wrote before (while it works when the array length is 4000).
Do you know any solutions to it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When you build the debug configuration you should turn on all diagnostics checks - both compile time and runtime. (It is also usually recommended that all of your routines have IMPLICIT NONE statement) This could give you information onpossible causes of the error : uninitialised variables, array bounds exceeded and so on. Argument mismatches (the types of the variables passed *to* a routine do not match the types of variablesexpected by that routine) will lead to a stack corruption and possible access violation also.
Les
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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