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

Home » Public Forums » archive » Re: Problem when reading many HDF-EOS file
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: Problem when reading many HDF-EOS file [message #49234 is a reply to message #49150] Wed, 05 July 2006 07:19 Go to previous message
savoie is currently offline  savoie
Messages: 68
Registered: September 1996
Member
Roni,

I'm tending to agree with kuyper on this one.

kuyper@wizard.net writes:

> Roni Drori wrote:
>> Hi,
>> I have an IDL program that reads many HDF-EOS file (using EOS_GD_OPEN
>> ....). When I'm reading more the ~100 files the program stops unable to
>> open more files.
>> What can be done to avoid this problem? (I'm reading simultaneously
>> only one file and then closing it with EOS_GD_close)
>
> If you never read more than one file at a time, I'd suspect a memory
> leak. The HDF-EOS functions contain lots of pairs of book-end
> functions: if you open something, you should close it. If you attach
> something, you should make sure to detach it, etc.. In general, the
> first one of each pair allocates resources (usually including memory),
> and the second function must be called to deallocate them; if it isn't,
> you have a resource leak. Check all of your calls to such functions,
> and make sure that they're matched up properly.

I had this problem with EOS_GD_ATTACH, in the documentation, there is not a
link to the opposing call EOS_GD_DETACH. Make sure your swath and grid
attatches are detatched before closing the file. Although closing the file
seems like it should clean up the open handles, it doesn't.

Hope this helps.

Matt

--
Matthew Savoie - Scientific Programmer
National Snow and Ice Data Center
(303) 735-0785 http://nsidc.org
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: objects and widgets
Next Topic: Re: Thinning image morphological operator

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

Current Time: Sat Oct 11 01:08:10 PDT 2025

Total time taken to generate the page: 1.28270 seconds