Re: How to catch any IDL errors? [message #58477] |
Thu, 31 January 2008 06:08 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
David Fanning writes:
> But this does sound strange. I've never known of an error
> like this, except those coming out of iTools. Can you give
> us more details about the circumstances of where this
> error occurs?
I mean by "an error like this", one that gave you so
little information about where it occurred, etc. I'm
not very clear this morning, but I'm pour coffee it to
solve the problem. :-(
Maybe you could send us the error message. Is it possible
there is more information there then you realize?
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.")
|
|
|
Re: How to catch any IDL errors? [message #58478 is a reply to message #58477] |
Thu, 31 January 2008 06:04  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Nicolas writes:
> Could any IDL expert explain me to cause IDL to be stopped ANYTIME an
> error occur?
>
> I've been struggling to catch an "% Keyword parameters not allowed in
> call" error.
> I don't know which keyword parameters, neither which routine....
> I can't locate the error. It's a nightmare!
The last time I ran into someone this frustrated about error
handling, a "friend" had given him a startup file that set
!QUIET=1. Let me tell you, it is *very* hard to debug a
program with that turned on! :-)
But this does sound strange. I've never known of an error
like this, except those coming out of iTools. Can you give
us more details about the circumstances of where this
error occurs?
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.")
|
|
|
Re: How to catch any IDL errors? [message #58483 is a reply to message #58478] |
Thu, 31 January 2008 02:38  |
izimine
Messages: 11 Registered: November 1997
|
Junior Member |
|
|
On Jan 31, 6:44 pm, Nicolas <primese...@gmail.com> wrote:
> Hi folks,
>
> Could any IDL expert explain me to cause IDL to be stopped ANYTIME an
> error occur?
>
> I've been struggling to catch an "% Keyword parameters not allowed in
> call" error.
> I don't know which keyword parameters, neither which routine....
> I can't locate the error. It's a nightmare!
>
> Already tried:
>
> 1) on_error, 0
>
> 2) CATCH, Error_status
> IF Error_status NE 0 THEN BEGIN
> PRINT, 'Error index: ', Error_status
> PRINT, 'Error message: ', !ERROR_STATE.MSG
> stop
> ENDIF
>
> Please help! :)
>
> Nicolas
try:
help, /last_message, output=errors
print, errors
help, calls=stack
print, stack
also have a look at http://www.dfanning.com/programs/error_message.pro
hope this helps
|
|
|