I have a script that loops over a function that opens different files and reads their contents. At its root, the function is utilizing FXREAD.PRO to read the FIT file. On about the 200th iteration the script stops with the error... % FREE_LUN: Error closing file. Unit: 100, File: /PATH/TO/FILE Bad file descriptor I'm guessing this means that the LUN assigned for the opened file is not being closed properly? and a open unused LUN is not available? Since I was using FXREAD.PRO I figured this error would be avoided since the LUN would be closed/freed inside FXREAD, but I feel I'm not wrong with this assumption. Does this make sense? Thanks in advance!!
|