comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » "OPENW: Error opening file. Unit: (...) Too many links" - What does this mean? (Possible I/O problem)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
"OPENW: Error opening file. Unit: (...) Too many links" - What does this mean? (Possible I/O problem) [message #85113] Fri, 05 July 2013 10:00 Go to previous message
Jasdeep Anand is currently offline  Jasdeep Anand
Messages: 16
Registered: August 2011
Junior Member
Hey all,

I'm writing a program that reads and writes several thousand ASCII files in several loops. This code has traditionally worked when the total number of files was about 90,000. However, I've recently increased the loops involved so that I create many more (~ 500,000 in all). When I do this, the program starts off fine, until up to a certain point (at about the 175,000th file), when I suddenly get this message:

% OPENW: Error opening file. Unit: (...)
File: (...)
Too many links
% Execution halted at: $MAIN$ (...)

I have not seen this error before. At first I thought that the file unit was being reused too much, so I tried to make every OPENW statement have a corresponding FREE_LUN statement when I was finished writing to a different file (I'm still using the same variable, "lun" for all these units, because I thought that FREE_LUN would mean I could reuse it again for another file), but I still get the same message at the same point in time. What else could be the problem here? I've not managed to find a similar instance of this problem occurring anywhere else and the IDL documentation isn't helping much.

Thanks,

Jas.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Calling vectors in readcol from a string array?
Next Topic: Peak detection

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:14:39 PDT 2025

Total time taken to generate the page: 0.00464 seconds