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

Home » Public Forums » archive » Re: Free_lun ALL
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: Free_lun ALL [message #40451] Wed, 11 August 2004 09:21 Go to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
David Fanning wrote:
> Paul Van Delst writes:
>
>
>> Rafael Loos wrote:
>>
>>> Hi,
>>> Is there a way to free all the units that you have created?
>>> Or I need to specify all the Unit names?
>>>
>>> I mean something like that:
>>>
>>> Free_lun, /all
>>>
>>> Or I need to do:
>>>
>>> Free_lun, unit1
>>> Free_lun, unit2
>>> Free_lun, unit3
>>
>> CLOSE, /ALL
>>
>> should do what you want (I think). It closes ALL open files and free's their luns too.
>>
>> paulv
>
>
> Ooogh, I'd be careful telling someone who is just
> becoming familiar with IDL (and the on-line help
> system) to do something like this. This is one of
> those Bad Programming Practices that sooner or later
> leads to HEAP_GC showing up in their code. :-(

True, but I assumed the OP needed to close ALL open files because an error occurred, or
you've inserted a STOP statement in your code. Then, when you get tossed back out to the
IDL prompt you do something like:

IDL> close, /all
IDL> retall

although I now prefer the more bull-in-a-china-shop method,

IDL> .reset_session

:o)

So, to the OP, I personally *never* use CLOSE,/ALL in "real" IDL code. Just in the debug
parts.

paulv

p.s. Although I hear that HEAP_GC is a favourite of some.... :o)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Free_lun ALL
Next Topic: Re: black window on fsc_surface & fsc_surface_log?

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

Current Time: Fri Oct 10 09:40:53 PDT 2025

Total time taken to generate the page: 1.68173 seconds