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

Home » Public Forums » archive » Re: programmatically detect problems in idl code
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: programmatically detect problems in idl code [message #45091 is a reply to message #45086] Mon, 01 August 2005 08:32 Go to previous messageGo to previous message
Mathieu Malaterre is currently offline  Mathieu Malaterre
Messages: 32
Registered: July 2005
Member
Benjamin Hornberger wrote:
> Mathieu Malaterre wrote:
>
>>
>> Is there a way to compile this program so that idl actually return
>> to the parent process an error occur ?
>>
>
> on_error, 2
>
> at the beginning of the routine. Have a look at "on_error", "on_ioerror"
> and "catch" in the IDL help.

Thanks Benjamin,

But I am looking for a command line option. I don't know ahead there is
a mistake in my idl code. I want to write a daemon that would check for
me all the code I am writting.

For a typical usage, let say I am writting code on win32 system, but
at the same time a linux system is running which observe the code I am
writting. All I need to do is run some command on the linux system to
check the code is ok: WITHOUT changing the code.

The analogy for C/C++, is that when the compiler find an error it
returns to the parent process with a value different from 0.

Or the worst case is there is a missing file, I want idl to tell me it
could not find the missing file:

$ echo inexistant_file | idl
$ echo $?
0

If there is no such thing I'll have to parse idl output and check for
strings like: 'Syntax Error', 'Execution halted' ... which is kind of a
pain.

I hope to be clear this time, thanks again
Mathieu
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Installing IDL 6.1 on debian linux 2
Next Topic: Avoiding For Loops

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

Current Time: Thu Oct 09 23:56:32 PDT 2025

Total time taken to generate the page: 0.87970 seconds