Re: open sockets [message #53112] |
Tue, 20 March 2007 11:09 |
Bringfried Stecklum
Messages: 75 Registered: January 1996
|
Member |
|
|
Dear Wayne,
the only other file which was open besides the 28 ds9 files was unit
100, the log file. I just checked that the socket procedure itself
behaves fine (using the example from the manual), i.e. opens and closes
units correctly.
Thanks for pointing to ATV (I have an older version installed). However,
ds9 offers some functionality which is not (yet) available with ATV.
regards,
Bringfried
Wayne Landsman wrote:
>> and uses "free_lun,unit" to deallocate the unit. However, after 28 calls
>> of webget the following error message pops up
>>
>> SOCKET: All available logical units are currently in use.
>
> I suspect that other files are being opened besides the one opened and
> closed by webget.pro. What does "help,/files" return?
>
> --Wayne
>
> P.S. DS9 as a fine astronomical display viewer, but you might also
> look at Aaron Barth's recently enhanced ATV ( http://www.physics.uci.edu/~barth/atv/
> ) for something similar in IDL.
>
>
|
|
|
Re: open sockets [message #53113 is a reply to message #53112] |
Tue, 20 March 2007 10:20  |
news.verizon.net
Messages: 47 Registered: August 2003
|
Member |
|
|
> and uses "free_lun,unit" to deallocate the unit. However, after 28 calls
> of webget the following error message pops up
>
> SOCKET: All available logical units are currently in use.
I suspect that other files are being opened besides the one opened and
closed by webget.pro. What does "help,/files" return?
--Wayne
P.S. DS9 as a fine astronomical display viewer, but you might also
look at Aaron Barth's recently enhanced ATV ( http://www.physics.uci.edu/~barth/atv/
) for something similar in IDL.
|
|
|
Re: open sockets [message #53114 is a reply to message #53113] |
Tue, 20 March 2007 09:28  |
Bringfried Stecklum
Messages: 75 Registered: January 1996
|
Member |
|
|
Perhaps this is a hint. I noticed that there dozens of defunct ds9 jobs.
I use "spawn" to pipe the images into ds9. After "close,/all" I can kill
them. But I am wondering whether this is the cause or the consequence of
the socket issue.
Bringfried Stecklum wrote:
> Dear folks,
>
> I am using the ASTROLIB webget procedure for retrieving data for a
> sample of targets in a loop. The procedure calls socket like this
>
> socket, unit, Server, Port, /get_lun,/swap_if_little_endian
>
> and uses "free_lun,unit" to deallocate the unit. However, after 28 calls
> of webget the following error message pops up
>
> SOCKET: All available logical units are currently in use.
>
> which means that all units available from the get_lun pool are still
> open. In order to be sure that they will be actually closed I added
> "close,unit" after "free_lun,unit". But this does not change anything
> (as you might have guessed). I thought I'd better ask before trying the
> "/force" keyword as a last resort.
>
> regards,
>
> Bringfried Stecklum
|
|
|