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

Home » Public Forums » archive » Re: Hoping ON_IOERROR would catch errors in IDLs subroutines.
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: Hoping ON_IOERROR would catch errors in IDLs subroutines. [message #64937] Tue, 03 February 2009 19:49 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
M. Katz writes:

> I'm trying to understand why ON_IOERROR doesn't catch an error that
> occurs with writing an image to the disk. Here's an example where I
> attempt to write an image to an intentionally nonexistent folder (see
> below).
>
> When I run the program it breaks at WRITE_PNG instead of jumping down
> to BAD_IO. However, if I change the WRITE_PNG to an OPENW, then it
> catches the error and redirects the flow the BAD_IO.
>
> What is the proper protocol to catch file errors in routines that IDL
> provides, and handle them in the parent procedure?

I pretty much handle everything with CATCH. I've never
had a problem with it.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Previous Topic: Hoping ON_IOERROR would catch errors in IDLs subroutines.
Next Topic: Accessing IDL from Java

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

Current Time: Fri Oct 10 04:45:41 PDT 2025

Total time taken to generate the page: 0.23933 seconds