RESOLVE_ALL [message #40203] |
Tue, 27 July 2004 16:33  |
Robert Barnett
Messages: 70 Registered: May 2004
|
Member |
|
|
I've found some unexpected/undocumented behaviour when I run resolve
all. (IDL 5.1 and 6.0)
If I do the following steps
1) compile .pro files
2) change directory using IDLs cd procedure
3) complile some other .pro files
4) run resolve_all
It seems that changing directory is not a good idea when I wish to run
resolve_all. The easy way around it is to ensure that all files are in
the IDL_PATH and thus avoid the need for changing directory altogether.
The bug is rather trivial but worthy of a post. If you follow David
Fannings tips/advice this should never happen to you.
Cheers,
Robbie
--
nrb@
Robbie Barnett
imag
Research Assistant
wsahs
Nuclear Medicine & Ultrasound
nsw
Westmead Hospital
gov
Sydney Australia
au
+61 2 9845 7223
|
|
|
|
|
Re: Resolve_all [message #66610 is a reply to message #40203] |
Sat, 23 May 2009 12:58  |
Homeyer
Messages: 9 Registered: March 2009
|
Junior Member |
|
|
On May 22, 2:22 pm, Vince Hradil <vincehra...@gmail.com> wrote:
> On May 22, 12:38 pm, vino <astrocr...@gmail.com> wrote:
>
>
>
>> On May 22, 5:46 pm, Homeyer <cam.the.weather....@gmail.com> wrote:
>
>>> On May 22, 6:10 am, vino <astrocr...@gmail.com> wrote:
>
>>>> Hi!
>
>>>> I shall be very grateful if someone can explain why the following
>>>> error is occuring...
>
>>>> IDL> .r find_uniq_objects.pro
>>>> % Compiled module: FIND_UNIQ_OBJECTS.
>>>> IDL> resolve_all
>>>> % Compiled module: FIND_UNIQ_OBJECTS.
>>>> % Attempt to call undefined procedure/function: 'FIND_UNIQ_OBJECTS'.
>>>> % Error occurred at: RESOLVE_ALL_BODY 290 /usr/local/rsi/idl70/idl/
>>>> lib/resolve_all.pro
>>>> % RESOLVE_ALL 351 /usr/local/rsi/idl70/idl/
>>>> lib/resolve_all.pro
>>>> % $MAIN$
>>>> % Execution halted at: $MAIN$
>
>>>> When i am able to individually compile the function, why is it that
>>>> resolve_all is not finding the .pro file?What is it that i am missing
>>>> here?
>
>>>> Thanks and regards,
>
>>>> Vino
>
>>> The error is the result of a function trying to be resolved as a
>>> procedure. My guess is that FIND_UNIQ_OBJECTS is defined as a
>>> function, but is being called as a procedure within
>>> find_uniq_objects.pro.
>
>>> Cheers,
>>> Cameron
>
>> Hi! As you both said find_uniq_objects is a function..But how do i
>> make sure that it is being resolved as a function rather than a
>> procedure?
>
>> Thanks and regards,
>
>> Vino
>
If it is working directly from the command line, the following line is
probably after the RETURN statement:
> Somewhere in find_uniq_objects.pro there is a line like:
> find_uniq_objects
>
> As opposed to:
> uobjs = find_uniq_objects(args)
-Cameron
|
|
|
Re: Resolve_all [message #66613 is a reply to message #40203] |
Fri, 22 May 2009 12:22  |
Vince Hradil
Messages: 574 Registered: December 1999
|
Senior Member |
|
|
On May 22, 12:38 pm, vino <astrocr...@gmail.com> wrote:
> On May 22, 5:46 pm, Homeyer <cam.the.weather....@gmail.com> wrote:
>
>
>
>> On May 22, 6:10 am, vino <astrocr...@gmail.com> wrote:
>
>>> Hi!
>
>>> I shall be very grateful if someone can explain why the following
>>> error is occuring...
>
>>> IDL> .r find_uniq_objects.pro
>>> % Compiled module: FIND_UNIQ_OBJECTS.
>>> IDL> resolve_all
>>> % Compiled module: FIND_UNIQ_OBJECTS.
>>> % Attempt to call undefined procedure/function: 'FIND_UNIQ_OBJECTS'.
>>> % Error occurred at: RESOLVE_ALL_BODY 290 /usr/local/rsi/idl70/idl/
>>> lib/resolve_all.pro
>>> % RESOLVE_ALL 351 /usr/local/rsi/idl70/idl/
>>> lib/resolve_all.pro
>>> % $MAIN$
>>> % Execution halted at: $MAIN$
>
>>> When i am able to individually compile the function, why is it that
>>> resolve_all is not finding the .pro file?What is it that i am missing
>>> here?
>
>>> Thanks and regards,
>
>>> Vino
>
>> The error is the result of a function trying to be resolved as a
>> procedure. My guess is that FIND_UNIQ_OBJECTS is defined as a
>> function, but is being called as a procedure within
>> find_uniq_objects.pro.
>
>> Cheers,
>> Cameron
>
> Hi! As you both said find_uniq_objects is a function..But how do i
> make sure that it is being resolved as a function rather than a
> procedure?
>
> Thanks and regards,
>
> Vino
Somewhere in find_uniq_objects.pro there is a line like:
find_uniq_objects
As opposed to:
uobjs = find_uniq_objects(args)
|
|
|
Re: Resolve_all [message #66618 is a reply to message #66523] |
Fri, 22 May 2009 10:39  |
vino
Messages: 36 Registered: March 2008
|
Member |
|
|
On May 22, 5:46 pm, Homeyer <cam.the.weather....@gmail.com> wrote:
> On May 22, 6:10 am, vino <astrocr...@gmail.com> wrote:
>
>
>
>> Hi!
>
>> I shall be very grateful if someone can explain why the following
>> error is occuring...
>
>> IDL> .r find_uniq_objects.pro
>> % Compiled module: FIND_UNIQ_OBJECTS.
>> IDL> resolve_all
>> % Compiled module: FIND_UNIQ_OBJECTS.
>> % Attempt to call undefined procedure/function: 'FIND_UNIQ_OBJECTS'.
>> % Error occurred at: RESOLVE_ALL_BODY 290 /usr/local/rsi/idl70/idl/
>> lib/resolve_all.pro
>> % RESOLVE_ALL 351 /usr/local/rsi/idl70/idl/
>> lib/resolve_all.pro
>> % $MAIN$
>> % Execution halted at: $MAIN$
>
>> When i am able to individually compile the function, why is it that
>> resolve_all is not finding the .pro file?What is it that i am missing
>> here?
>
>> Thanks and regards,
>
>> Vino
>
> The error is the result of a function trying to be resolved as a
> procedure. My guess is that FIND_UNIQ_OBJECTS is defined as a
> function, but is being called as a procedure within
> find_uniq_objects.pro.
>
> Cheers,
> Cameron
P.S: I am calling it as a function from the command line directly!!!
|
|
|
Re: Resolve_all [message #66619 is a reply to message #66523] |
Fri, 22 May 2009 10:38  |
vino
Messages: 36 Registered: March 2008
|
Member |
|
|
On May 22, 5:46 pm, Homeyer <cam.the.weather....@gmail.com> wrote:
> On May 22, 6:10 am, vino <astrocr...@gmail.com> wrote:
>
>
>
>> Hi!
>
>> I shall be very grateful if someone can explain why the following
>> error is occuring...
>
>> IDL> .r find_uniq_objects.pro
>> % Compiled module: FIND_UNIQ_OBJECTS.
>> IDL> resolve_all
>> % Compiled module: FIND_UNIQ_OBJECTS.
>> % Attempt to call undefined procedure/function: 'FIND_UNIQ_OBJECTS'.
>> % Error occurred at: RESOLVE_ALL_BODY 290 /usr/local/rsi/idl70/idl/
>> lib/resolve_all.pro
>> % RESOLVE_ALL 351 /usr/local/rsi/idl70/idl/
>> lib/resolve_all.pro
>> % $MAIN$
>> % Execution halted at: $MAIN$
>
>> When i am able to individually compile the function, why is it that
>> resolve_all is not finding the .pro file?What is it that i am missing
>> here?
>
>> Thanks and regards,
>
>> Vino
>
> The error is the result of a function trying to be resolved as a
> procedure. My guess is that FIND_UNIQ_OBJECTS is defined as a
> function, but is being called as a procedure within
> find_uniq_objects.pro.
>
> Cheers,
> Cameron
Hi! As you both said find_uniq_objects is a function..But how do i
make sure that it is being resolved as a function rather than a
procedure?
Thanks and regards,
Vino
|
|
|