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

Home » Public Forums » archive » Re: How to free luns?
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: How to free luns? [message #12359] Thu, 16 July 1998 00:00 Go to previous message
David Foster is currently offline  David Foster
Messages: 341
Registered: January 1996
Senior Member
Joseph Scott Stuart wrote:
>
> I often have the problem when I'm trying to debug a new IDL procedure,
> that it crashes in the middle before getting to the part where it
> frees the LUNs. If I run the program again and again trying to debug
> it, IDL can quickly run out of LUNs. Is there a way to free all of
> the allocated LUNs? Now, I know that I could catch all errors and
> free them in the error handler, but that seems like a hassle when I'm
> debugging code because the error message gets redirected. I could
> just start writing the code correctly the first time, but that would
> take all of the fun out of it.:-)

Just a gentle reminder to RTFM. The CLOSE() routine has a keyword
/ALL that does just what you want. You can also use /FILE to
selectively close units <= 99.

If you ever want to know which files are open, just use:

help, /files

Dave

--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2240
La Jolla, CA 92037
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Widget Slider Values
Next Topic: Re: [Q] idl-mode for Emacs?

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

Current Time: Thu Oct 09 20:35:20 PDT 2025

Total time taken to generate the page: 1.52122 seconds