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

Home » Public Forums » archive » Re: IDL doesn't close files.
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: IDL doesn't close files. [message #38980 is a reply to message #38979] Fri, 16 April 2004 07:19 Go to previous messageGo to previous message
R.G. Stockwell is currently offline  R.G. Stockwell
Messages: 363
Registered: July 1999
Senior Member
"Craig Markwardt" <craigmnet@REMOVEcow.physics.wisc.edu> wrote in message news:on1xmo60qo.fsf@cow.physics.wisc.edu...
>
> "R.G. Stockwell" <noemail@please.com> writes:
>>
>> Do NOT close then use free_lun.
>> If you used a get_lun, then use free_lun.
>> i.e.
>
> Bob, I don't by your suggestion. CLOSE closes a file, and FREE_LUN
> deallocates a unit number; they are completely separate functions. [
> Although it is true that FREE_LUN on an open unit will close it as
> well as deallocating it. ] You can definitely use CLOSE and then
> FREE_LUN. I do it all the time.
>
> Craig

Hi Craig,
yes, I should have said "do not get_lun and then close", that was the
problem that I had in mind when I read the OP. I had a colleague
ask me about that type of problem a short while ago, so I had it
in mind. It appears that closing then free_luning does not cause
the memory leak.


-bob
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Transparent polygons
Next Topic: need to develop interactive plot routine

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

Current Time: Fri Oct 10 23:19:21 PDT 2025

Total time taken to generate the page: 0.64156 seconds