When you run some subroutine for the second time which has ALLOCATE inside and the subroutine trying to allocate already allocated array.
I think this is wrong diagnostics message. Specifically if there are no POINTERs used
Another similar error 421: Reference through dangling Fortran pointer. That i do not know why happened today after normal work with no reason at all. On this piece of code:
! _ __ _
! /\/\ __ _ __ _ _ __ (_) / _|(_) ___ _ __
! / \ / _` | / _` || '_ \ | || |_ | | / _ \| '__|
! / /\/\ \| (_| || (_| || | | || || _|| || __/| |
! \/ \/ \__,_| \__, ||_| |_||_||_| |_| \___||_|
! |___/
! Magnifier
!
i=select_graphics_object@(ihw_Magnifier)
! magnFactor = 8
do ix=1,ixsizMag
indXarr = max(1,nint(ix_mouse+(ix+magnFactor/1.2-ixsizMag/2.)/magnFactor))
indXarr = min(indXarr, hres)
do iy=1,iysizMag
indYarr = max(1,nint(iy_mouse+(iy+magnFactor/1.2-iysizMag/2.)/magnFactor))
indYarr = min(indYarr, vres)
do ic=1,3
MagnifierArr(ic, ix,iy) = ImageArr(ic,indXarr, indYarr) <----- here
enddo
enddo
enddo