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

Home » Public Forums » archive » FREE_LUN supposed to work in a loop?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
FREE_LUN supposed to work in a loop? [message #84431] Sat, 01 June 2013 21:40
fgg is currently offline  fgg
Messages: 67
Registered: April 2010
Member
Hi there,

I'm getting "OPENR: All available logical units are currently in use" when running something like this:

for i = 0, n_elements(texts)-1 do begin
openw, lun, control_file, /get_lun
printf, lun, 'some text'
free_lun, lun
run_this_procedure ;this is a *.pro that uses the control_file just created above
endfor

If I do "help, /files" I see that all units have been closed but are still reserved. Why?! Any suggestion?

Thanks!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Searching for Nyala in Ethiopia
Next Topic: Re: celestial sphere plotting

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

Current Time: Wed Oct 08 15:47:44 PDT 2025

Total time taken to generate the page: 0.00516 seconds