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
|
|
|