Hello,
I try to use ALLOCATE. In my test program the code below behaves as expected. Variable has the correct dimension of 500000 and assignment is working.
CHARACTER(256), ALLOCATABLE :: TXT(:)
ALLOCATE(TXT(500000),STAT=IERR)
When I try to adapt this code in my main program, STAT returns 0, but the dimension is shown as TXT(-1:0) in Salford Debugger 7.10. No assignment is possible. Assigment provides an access violation. I wonder why it behaves different compared to my test program.