X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 09 Dec 2008 06:23 AM by  anon
EOS_SW_ATTACH in a loop?
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
09 Dec 2008 06:23 AM
    I have been trying to run a code (far too long to include here) which includes the line:     swath_id    = EOS_SW_ATTACH( sw_id, swathname[swath_ctr] )     n_fields    = EOS_SW_INQDATAFIELDS( swath_id, field_list, rank, n_type ) I have been running a loop over the entire thing so that I can process all the files in my directory .  So far, every time i run the code after 30 runs of the loop, the code crashes because sw_id returns -1, and therefore n_fields returns the following error: EOS_SW_INQDATAFIELDS: Unable to query (null) information. I am wondering if anyone else has experienced this or knows what might be causing the problem? Thanks.

    Deleted User



    New Member


    Posts:
    New Member


    --
    20 Dec 2008 02:04 PM
    Thanks for your response. I actually thought the same and that was one of the first things I tried. In the end, I managed to solve this the other day  - In case anyone comes across the same issue i used  HDF_SD_END I think there must have been a memory issue with sd_id, and by using the end function released the memory and solved the problem.
    You are not authorized to post a reply.