> Date: Mon, 29 Apr 2002 15:31:12 +0100
> From: Coby Needle <[log in to unmask]>
> Dear list members,
>
> I've been having great difficulty with allocatable arrays in Compaq
> Visual Fortran - hopefully someone can suggest a fix.
>
> My code has 5 global allocatable arrays, and some 10 or 15
> further allocatable arrays within a subroutine. All runs smoothly
> until I try to deallocate these subroutine arrays, whereupon the program
> crashes with the line:
>
> severe (157): Program Exception - access violation
>
> and asking for details yields the following:
>
> invalid page fault in MSVCRT.DLL
>
> All this is very odd, because the array in question certainly does exist.
> I can avoid the problem by fixing the sizes of all arrays to be larger than
> I could possibly need, but this defeats the purpose of dynamic
> allocation. Any advice?
Set the compiler option for array bounds checking.
> Many thanks,
>
> Coby Needle.
|