Hi all, I'm making a strange observation, which I cannot reproduce in a short test program (below), which runs well however. I'm allocating and deallocating arrarys in a loop with dynamic file size. My 'large' program halts, without any notice or message, at allocate in the second call of sub. All previous allocates and deallocates return a STAT value of 0.
MODULE common
Real,Allocatable :: A(:,:)
END Module
PROGRAM alloctest
USE common
1 continue
ALLOCATE (A(10,10))
print *,'Allocated'
A=12345.
print *,'Now deallocate'
DEALLOCATE (A)
print *,'Allocated again'
ALLOCATE (A(20,20))
print *,'Now deallocate'
DEALLOCATE (A)
CALL sub()
pause 'next lap'
goto 1
END
Subroutine sub()
USE common
print *,'sub called.'
print *,'Allocated again'
ALLOCATE (A(5,5))
print *,'Now deallocate'
DEALLOCATE (A)
print *,'sub left'
RETURN
END
I have to add that I use third-party widget routines and call-back functions.
What I want to know is, how to get any diagnostic information. Best regards, johannes