Re: How to free luns? [message #12359] |
Thu, 16 July 1998 00:00  |
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
|
|
|