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

Home » Public Forums » archive » Re: IDL- readf fails from CD
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- readf fails from CD [message #15061] Wed, 14 April 1999 00:00
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
isojoern@my-dejanews.com writes:

> Hi there,

> while reading series of files from a scratched CD (IDL, win95), readf fails
> when it encounters a corrupted file and my program croaks. What needs to be
> done to return gracefully with an error message or something?? (opening the
> file works fine, but some data in the middle is srcewed up...)

> thanks, joern

Have you tried ON_IOERROR, e.g.

ON_IOERROR, ERROR_POINT
READF, UNIT, MYDATA
(etc.)
.
.
.
ERROR_POINT:
MESSAGE, /CONTINUE, 'Error reading CDROM'
(etc.)

William Thompson
[Message index]
 
Read Message
Previous Topic: SVDFIT docs bug
Next Topic: Re: Preferences file for/from a runtime application

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

Current Time: Fri Oct 10 19:39:48 PDT 2025

Total time taken to generate the page: 0.72439 seconds