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

Home » Public Forums » archive » get_lun & free_lun
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: get_lun & free_lun [message #89337 is a reply to message #89335] Tue, 19 August 2014 10:24 Go to previous message
markb77 is currently offline  markb77
Messages: 217
Registered: July 2006
Senior Member
On Tuesday, August 19, 2014 6:13:17 PM UTC+2, Yngvar Larsen wrote:
> On Tuesday, 19 August 2014 14:02:05 UTC+2, superchromix wrote:
>
>> I just noticed that get_lun and free_lun are limited to unit numbers 100-128. That means an IDL application could have access to (at maximum) 29 files simultaneously.
>
>>
>
>>
>
>>
>
>> Is there any way around this, other than hard-coding logical unit numbers into your code?
>
>
>
>
>
> 1) Use idl_idlbridge. The new idl "child processes" get their own separate set of LUNs (but possibly limited by your OS: see eg "ulimit -n" and "sysctl -n kernel.maxfiles" on a linux system)
>
>
>
> or
>
>
>
> 2) Close your files as soon as possible after you finish reading/writing what you need. (In what scenario do you need to keep more than 29 files open at the same time?)
>
>
>
> --
>
> Yngvar

Thanks for the tip about the IDL_IDLBridge - I'm glad that's the case. I was thinking of a scenario where 5 instances of an application are running simultaneously.. it wouldn't be unreasonable for each of those applications to have 5 files open...
Mark
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Generating N random numbers that add to a TOTAL
Next Topic: Customising ENVI water depths tool with IDL

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

Current Time: Sat Oct 11 12:30:38 PDT 2025

Total time taken to generate the page: 1.28301 seconds