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

Home » Public Forums » archive » RESOLVE_ALL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
RESOLVE_ALL [message #40203] Tue, 27 July 2004 16:33 Go to next message
Robert Barnett is currently offline  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 #66523 is a reply to message #40203] Fri, 22 May 2009 09:46 Go to previous messageGo to next message
Homeyer is currently offline  Homeyer
Messages: 9
Registered: March 2009
Junior Member
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
Re: Resolve_all [message #66524 is a reply to message #40203] Fri, 22 May 2009 09:46 Go to previous messageGo to next message
Spon is currently offline  Spon
Messages: 178
Registered: September 2007
Senior Member
On May 22, 12:10 pm, vino <astrocr...@gmail.com> wrote:
> 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?
>
> Vino

Hi Vino,

is your code trying to call it as a function, when it's actually a
procedure (or vice versa) somewhere? That's one way I've found that
can cause this odd combination of messages.

Regards,
Chris
Re: Resolve_all [message #66610 is a reply to message #40203] Sat, 23 May 2009 12:58 Go to previous message
Homeyer is currently offline  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 Go to previous message
Vince Hradil is currently offline  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 Go to previous message
vino is currently offline  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 Go to previous message
vino is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: show tooltip description
Next Topic: fsc_color problem on IDL7.1

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

Current Time: Wed Oct 08 15:39:27 PDT 2025

Total time taken to generate the page: 0.00569 seconds