I am getting a crash on a write statement that I don't understand. Any help appreciated.
The code crashes when allocating memory on the heap it appears. The line in question is the first executable line in routine WRSTAT
All default REAL are 64 bits as are all default INTEGERS via compiler option. The call stack is shown in the attached picture:
I suspect it may be something else wrong elsewhere in the code, but maybe someone can spot something here I have missed.