Syntax errors [message #50747] |
Wed, 18 October 2006 14:19  |
Dominic Metzger
Messages: 30 Registered: August 2006
|
Member |
|
|
Hi,
Me again. Why isnt it possible to suppress syntax errors in
RESOLVE_ROUTINE unless I use EXECUTE and IDL_IDLBRIDGE instead? How
come !QUIET or CATCH, ERROR wont take of it?
Or is there another way than using execute so that any errors caused by
RESOLVE_ROUTINE (including syntax errors) wont be shown / printed to
screen?
PRO LOAD_ROUTINE, ROUTINE
!QUIET=1
CATCH, ERROR
IF (ERROR NE 0) THEN RETURN
RESOLVE_ROUTINE, ROUTINE, /EITHER
END
PRO MY_PROCEDURE
...
LOAD_ROUTINE, ROUTINE
...
END
gracias
dometz
|
|
|
|
|
Re: Syntax errors [message #50888 is a reply to message #50747] |
Thu, 19 October 2006 05:46   |
Allan Whiteford
Messages: 117 Registered: June 2006
|
Senior Member |
|
|
Dometz,
How about:
resolve_all,/continue_on_error,/quiet
This, of course, just won't compile routines which have errors but I
guess that's what you want?
Thanks,
Allan
Dometz wrote:
> Hi,
>
> Me again. Why isnt it possible to suppress syntax errors in
> RESOLVE_ROUTINE unless I use EXECUTE and IDL_IDLBRIDGE instead? How
> come !QUIET or CATCH, ERROR wont take of it?
>
> Or is there another way than using execute so that any errors caused by
> RESOLVE_ROUTINE (including syntax errors) wont be shown / printed to
> screen?
>
>
> PRO LOAD_ROUTINE, ROUTINE
> !QUIET=1
> CATCH, ERROR
> IF (ERROR NE 0) THEN RETURN
> RESOLVE_ROUTINE, ROUTINE, /EITHER
> END
>
> PRO MY_PROCEDURE
> ...
> LOAD_ROUTINE, ROUTINE
> ...
> END
>
> gracias
>
> dometz
>
|
|
|
|
Re: Syntax errors [message #50960 is a reply to message #50747] |
Thu, 26 October 2006 10:19  |
JD Smith
Messages: 850 Registered: December 1999
|
Senior Member |
|
|
On Wed, 25 Oct 2006 23:23:22 -0600, Michael Galloy wrote:
> Dometz wrote:
>> [quoted text muted]
>
> That's right. If you need a single session with all the routines in it, I
> would make a single IDL_IDLBridge and then repeatedly compile routines in
> it. If you are going to check a lot of routines, I would do this anyway
> since there is so much overhead in creating an IDL_IDLBridge.
How much overhead is it? How much processing do you need to do in a
the Bridge for it to be worth it to start up?
JD
|
|
|
|
|