Octave fails after a certain number of calls to ReadSegy
I have a program that reads SEGY data (using SegyMat) that fails after a
certain number of calls to ReadSegy. The number of calls before failure is
between 502 and 506 depending on the version of the program I am trying to
I created a simplified version of the program below:
In this version, after 506 calls the program fails with the following error
error: load: unable to open input file 'SegyMAT_Rev'
error: called from
GetSegyHeaderBasics at line 34 column 5
GetSegyHeader at line 91 column 15
ReadSegy at line 269 column 15
tull2 at line 1026 column 39
I think this may be a memory related problem.
I'm running Octave 5.1.0 and have SegyMat-1.6 loaded on a Windows 10