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 #84428 is a reply to message #84426] Sat, 01 June 2013 22:23 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
fgg writes:

> 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?

Free_Lun both closes and frees up a logical unit number that has been
opened with Get_Lun (i.e., one in the range 100-128). There is no need
to use an additional Close in this case. Close should be used if you
have chosen a logical unit number from the range 1-99 (i.e, OpenR, 5,
...). Then, using a Close both closes the file and frees it. There is no
need to use Free_Lun in this case.

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[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 17:17:45 PDT 2025

Total time taken to generate the page: 0.00440 seconds