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

Home » Public Forums » archive » error handling
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: error handling [message #63465 is a reply to message #1347] Sun, 09 November 2008 17:20 Go to previous messageGo to previous message
bulrushmower is currently offline  bulrushmower
Messages: 19
Registered: February 2008
Junior Member
On Nov 9, 6:24 pm, David Fanning <n...@dfanning.com> wrote:
> bulrushmo...@gmail.com writes:
>> How can I set up that when error happens, IDL output the error message
>> to log file, then igonore that step continue to process next data?.
>
> Something like this:
>
>   OpenW, lun, 'logfile.out', /GET_LUN
>   FOR j=0,n DO BEGIN
>
>      Catch, theError
>      IF theError NE 0 THEN BEGIN
>         PrintF, lun, 'Problem with processing step ' + StrTrim(j)
>         CONTINUE
>      ENDIF
>
>      DoSomeProcessing, data[j]
>   ENDFOR
>   Catch, /Cancel
>   Free_Lun, lun
>
> 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.")

thank you!
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Plot: idl_guide4 UK_NCAS-Meteo-Library
Next Topic: Re: Empty arrays?

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

Current Time: Fri Oct 10 14:18:10 PDT 2025

Total time taken to generate the page: 0.72427 seconds