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

Home » Public Forums » archive » Re: how to clear error message
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: how to clear error message [message #73290 is a reply to message #73289] Wed, 03 November 2010 14:20 Go to previous messageGo to previous message
Truong Le is currently offline  Truong Le
Messages: 42
Registered: September 2010
Member
On Nov 3, 4:58 pm, Truong Le <truong...@gmail.com> wrote:
> All,
>
> I need to know how to clear all error message that idl generated.
>
> I am using this two lines to stop to trap my error.
>
> Help, /Last_Message, Output=theErrorMessage
>    errorLength = N_ELEMENTS(theErrorMessage)
>
> However, I need to clear all the error message so that when I am
> looping to these two lines again the
> errorLength should be zero when no error message occur.
>
> Thanks

In other word, I need to know how to catch a stderr that produces from
the Astronomy IDL's library.
When I try to read a bad FITS file I obtain the following error

% MRD_HREAD: Warning-Invalid characters in header

This message kept on executing and did'nt stop. How can I catch that
error.

Thanks
[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
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: how to clear error message
Next Topic: summing mulit-D array along 1 dimension, at an angle to the rows

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

Current Time: Thu Oct 09 06:46:39 PDT 2025

Total time taken to generate the page: 1.44430 seconds