Re: Error handing in embedded applications [message #42950] |
Tue, 08 March 2005 10:47 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Craig Markwardt writes:
> If your CATCH handler uses MESSAGE, perhaps that is confusing IDL?
> Could you avoid using a MESSAGE command? Perhaps you can reset the
> IDL !ERROR status code, or whatever it is these days, to zero?
I don't think I can avoid MESSAGE. It is the only way I know
to throw an error. I have tried setting the !Error_State fields
to "success" values, but to no avail. I think the problem is
that the error occurs during a widget event, and I think
the RSI routine that distributes events is catching the
error there somehow. I would LOVE to see some documentation. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|
Re: Error handing in embedded applications [message #42959 is a reply to message #42950] |
Tue, 08 March 2005 06:41  |
Craig Markwardt
Messages: 1869 Registered: November 1996
|
Senior Member |
|
|
David Fanning <david@dfanning.com> writes:
> Folks,
>
> Does anyone understand error handling in embedded applications?
> I've got a bomb-proof program. CATCH error handlers everywhere.
> When an error occurs, I go to my error handling code. If in
> normal IDL, all is well, I return all the way back to the
> event loop level and I carry on, no big deal.
>
> In my embedded application, the same error gets into the
> CATCH, and then goes--apparently--to a different error
> handler where the words "Please consult the supplier of
> this application" is appended to the error message.
If your CATCH handler uses MESSAGE, perhaps that is confusing IDL?
Could you avoid using a MESSAGE command? Perhaps you can reset the
IDL !ERROR status code, or whatever it is these days, to zero?
Just some ideas,
Craig
--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
|
|
|