Re: idl-envi resolv_all [message #66181] |
Thu, 23 April 2009 06:24 |
lidiriel
Messages: 2 Registered: April 2009
|
Junior Member |
|
|
Ok thanks,
I have correct name of several file.
Thanks jean i have several call to envi function in my code and /
continue_on_error work perfectly.
In idl prompt all my script work perfectly but when i launch the
script (.sav) in runtime mode i have a problem :
The envi GUI is launched and it don't work. My code is not executed
how to does'nt launch the gui ?
is there any log file for debugging ?
here my makefile for create the .sav file :
envi, /restore_base_save_files
.run decal_c_l_calib_batch.pro
resolve_all
.compile batch_calib_one_file_data.pro
resolve_all, /continue_on_error
save, /routines, filename='batch_calib_data.sav'
On 22 avr, 17:12, "Jean H." <jghas...@DELTHIS.ucalgary.ANDTHIS.ca>
wrote:
> Hi,
>
> Are you using any Envi function in your code? (or just calling envi). If
> yes, IDL will try to compile some of Envi function's, even if you
> don't use them. You will not see a filename with the same name as the
> function either. You can try to use resolve_all, /continue_on_error
> ... but then you won't know if a needed function is not resolved...
>
> Jean
>
> lidiriel wrote:
>> Hi,
>
>> i am new in idl-envi world. I work on a old idl script.
>> This script run perfectly with the idl command line and i try to
>> create a "sav" file for use it in runtime mode.
>> But i launch resolv_all command after compiling my script i have the
>> error "Attempt to call undefined procedure/function:
>> 'ADAPT_FILT_EVENT'." See in the end of this message.
>
>> I have no function or procedure in my source named "ADAPT_FILT_EVENT"
>> and there are no file in itt(idl/envi) directory with this name.
>
>> Someone have an idea on this error ?
>
>> thanks in advance
>
>> IDL> .compile batch_calib_one_file_omega
>> % Compiled module: CALIB_ONE_FILE_OMEGA.
>> % Compiled module: BATCH_CALIB_ONE_FILE_OMEGA.
>> IDL> resolve_all
>> % Attempt to call undefined procedure/function: 'ADAPT_FILT_EVENT'.
>> % Error occurred at: RESOLVE_ALL_BODY
>> % RESOLVE_ALL
>> % $MAIN$
>> % Execution halted at: $MAIN$
>> IDL>
|
|
|
Re: idl-envi resolv_all [message #66193 is a reply to message #66181] |
Wed, 22 April 2009 08:12  |
Jean H.
Messages: 472 Registered: July 2006
|
Senior Member |
|
|
Hi,
Are you using any Envi function in your code? (or just calling envi). If
yes, IDL will try to compile some of Envi function's, even if you
don't use them. You will not see a filename with the same name as the
function either. You can try to use resolve_all, /continue_on_error
... but then you won't know if a needed function is not resolved...
Jean
lidiriel wrote:
> Hi,
>
> i am new in idl-envi world. I work on a old idl script.
> This script run perfectly with the idl command line and i try to
> create a "sav" file for use it in runtime mode.
> But i launch resolv_all command after compiling my script i have the
> error "Attempt to call undefined procedure/function:
> 'ADAPT_FILT_EVENT'." See in the end of this message.
>
> I have no function or procedure in my source named "ADAPT_FILT_EVENT"
> and there are no file in itt(idl/envi) directory with this name.
>
> Someone have an idea on this error ?
>
> thanks in advance
>
> IDL> .compile batch_calib_one_file_omega
> % Compiled module: CALIB_ONE_FILE_OMEGA.
> % Compiled module: BATCH_CALIB_ONE_FILE_OMEGA.
> IDL> resolve_all
> % Attempt to call undefined procedure/function: 'ADAPT_FILT_EVENT'.
> % Error occurred at: RESOLVE_ALL_BODY
> % RESOLVE_ALL
> % $MAIN$
> % Execution halted at: $MAIN$
> IDL>
|
|
|
Re: idl-envi resolv_all [message #66196 is a reply to message #66193] |
Wed, 22 April 2009 06:13  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
lidiriel writes:
> i am new in idl-envi world. I work on a old idl script.
> This script run perfectly with the idl command line and i try to
> create a "sav" file for use it in runtime mode.
> But i launch resolv_all command after compiling my script i have the
> error "Attempt to call undefined procedure/function:
> 'ADAPT_FILT_EVENT'." See in the end of this message.
>
> I have no function or procedure in my source named "ADAPT_FILT_EVENT"
> and there are no file in itt(idl/envi) directory with this name.
>
> Someone have an idea on this error ?
This is a classic symptom of files that are named
incorrectly:
http://www.dfanning.com/tips/namefiles.html
My guess is you will find it somewhere below the
"command" module of a file (I.e., the module that
has the same name as the file), where it can't be
found by routines like RESOLVE_ALL.
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.")
|
|
|