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

Home » Public Forums » archive » Re: IDL HDF interface is quite brittle-- how to reset after error?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: IDL HDF interface is quite brittle-- how to reset after error? [message #71306] Tue, 08 June 2010 13:22
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ed Hyer writes:

> So, I've been browsing the pages here and at Coyote's and I think most
> people are aware of the issues with HDF in IDL, but for me it largely
> boils down to: "it works, when everything is done exactly right and
> nothing unexpected occurs."
>
> Thing is, when something does go wrong, the HDF interface gets into an
> inconsistent state, and the only way to fix it, as far as I can tell,
> is to exit IDL completely (I didn't try the '.RESET' commands, but you
> can't script those so it doesn't really apply anyway). So, even though
> I've embedded my HDF access in functions, if something goes wrong
> writing an HDF file, the process grinds to a halt and the next file
> will never be processed.
>
> Has anyone figured out a trick to fully reset the HDF interface so
> that a routine can move on to the next file?

Humm. You CATCH the errors and are deattaching from the
SD interface (or whatever you are using) and closing
the file, right? I can't imagine that not working. :-)

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: transparency in direct graphics ?
Next Topic: widget_text - set the position of the scrollbars

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

Current Time: Wed Oct 08 15:11:25 PDT 2025

Total time taken to generate the page: 0.00491 seconds