My program writes to the screen with
write(*,*) various stuff
so that I can see intermediate results.
After a few writes, the program halts with the message: "the file specified is not a text file. it cannot be replaced". A cancel button is presented.
Clicking on that button results in a few more writes before halting again, and so on.