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

Home » Public Forums » archive » Re: FREE_LUN supposed to work in a loop?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: FREE_LUN supposed to work in a loop? [message #84430 is a reply to message #84428] Sat, 01 June 2013 22:04 Go to previous message
fgg is currently offline  fgg
Messages: 67
Registered: April 2010
Member
I think I found the problem. run_this_procedure opens the control_file and then uses a simple CLOSE, never really deallocating the unit. Any danger in substituting CLOSE for FREE_LUN? Thanks!


On Sunday, June 2, 2013 12:40:31 AM UTC-4, fgg wrote:
> 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!
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: celestial sphere plotting
Next Topic: IDLgrView question

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

Current Time: Wed Oct 08 19:24:58 PDT 2025

Total time taken to generate the page: 0.00492 seconds