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

Home » Public Forums » archive » Re: Active FIDs?
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
Re: Active FIDs? [message #66306] Sun, 03 May 2009 19:42
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Jonathan Greenberg writes:

> I'm getting the following error in some code I've written: CLOSE: File
> unit is not within allowed range: 133. I'm guessing I'm forgetting a
> FREE_LUN someplace, but is there a programmatic way to check to see
> what FIDs (acquired initially via openr,..,/GET_LUN) are currently
> "open"?

If you are opening the file with GET_LUN, either as
a keyword or as the procedure, there is no need to use
CLOSE. FREE_LUN will both close the logical unit number
and free it up to be used over again.

Help, /FILES will tell you which files you currently have
open and attached to a logical unit number.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Active FIDs? [message #66308 is a reply to message #66306] Sun, 03 May 2009 17:30 Go to previous message
mankoff is currently offline  mankoff
Messages: 131
Registered: March 2004
Senior Member
On May 3, 7:34 pm, Jonathan Greenberg <jgrn...@gmail.com> wrote:
> I'm getting the following error in some code I've written: CLOSE: File
> unit is not within allowed range: 133. I'm guessing I'm forgetting a
> FREE_LUN someplace, but is there a programmatic way to check to see
> what FIDs (acquired initially via openr,..,/GET_LUN) are currently
> "open"?

help, /files
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Active FIDs?
Next Topic: Spherical Surface Plot w/ fsc_surface from David Fanning (:

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

Current Time: Wed Oct 08 20:01:20 PDT 2025

Total time taken to generate the page: 0.00575 seconds