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

Home » Public Forums » archive » Using function after .reset
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
Using function after .reset [message #82652] Thu, 10 January 2013 09:47 Go to next message
PMan is currently offline  PMan
Messages: 61
Registered: January 2011
Member
Hi

I am running IDL 8.2.1 on a Linux 64 bit system. I have encountered an odd problem using a function after a .reset is performed.

Upon opening idlde, I run my program without a problem. I decide I need make a change in an object and in order to recompile the object with the change I must .reset. I rerun the program and everything must recompile. One function (called imgOpen with filename imgopen.pro) which compiled and ran fine in the first run, now compiles, but the function cannot be found. See below:

% Compiled module: IMGOPEN.
% Attempt to call undefined procedure/function: 'IMGOPEN'.

Anyone have an idea why this occurs?

Thanks.
Re: Using function after .reset [message #82705 is a reply to message #82652] Mon, 14 January 2013 12:09 Go to previous message
Matthew Argall is currently offline  Matthew Argall
Messages: 286
Registered: October 2011
Senior Member
Could be because .reset also resets IDL's !Path variable...
Re: Using function after .reset [message #82746 is a reply to message #82652] Thu, 10 January 2013 10:32 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Paul Mallas writes:

> I use "compile_opt idl2" often and it is indeed used in the function that can't be found. But I will look around.

Coyote is always telling me to play the percentages when it comes to
women, tennis, and gambling. Bad advice, as always. :-(

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Re: Using function after .reset [message #82747 is a reply to message #82652] Thu, 10 January 2013 10:16 Go to previous message
PMan is currently offline  PMan
Messages: 61
Registered: January 2011
Member
On Thursday, January 10, 2013 1:11:10 PM UTC-5, David Fanning wrote:
> Paul Mallas writes:
>
>
>
>> I am running IDL 8.2.1 on a Linux 64 bit system. I have encountered an odd problem using a function after a .reset is performed.
>
>>
>
>> Upon opening idlde, I run my program without a problem. I decide I need make a change in an object and in order to recompile the object with the change I must .reset. I rerun the program and everything must recompile. One function (called imgOpen with filename imgopen.pro) which compiled and ran fine in the first run, now compiles, but the function cannot be found. See below:
>
>>
>
>> % Compiled module: IMGOPEN.
>
>> % Attempt to call undefined procedure/function: 'IMGOPEN'.
>
>>
>
>> Anyone have an idea why this occurs?
>
>
>
> I don't know this for a fact, and I'm guessing because I haven't been
>
> following this thread closely, but I would wager some serious money that
>
> if you stuck Compile_Opt idl2 in all of your program modules and
>
> restarted IDL, that this problem would go away.
>
>
>
> In fact, I'm going to double down on it! ;-)
>
>
>
> Cheers,
>
>
>
> David
>
>
>
>
>
>
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")

I use "compile_opt idl2" often and it is indeed used in the function that can't be found. But I will look around.
Re: Using function after .reset [message #82748 is a reply to message #82652] Thu, 10 January 2013 10:11 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Paul Mallas writes:

> I am running IDL 8.2.1 on a Linux 64 bit system. I have encountered an odd problem using a function after a .reset is performed.
>
> Upon opening idlde, I run my program without a problem. I decide I need make a change in an object and in order to recompile the object with the change I must .reset. I rerun the program and everything must recompile. One function (called imgOpen with filename imgopen.pro) which compiled and ran fine in the first run, now compiles, but the function cannot be found. See below:
>
> % Compiled module: IMGOPEN.
> % Attempt to call undefined procedure/function: 'IMGOPEN'.
>
> Anyone have an idea why this occurs?

I don't know this for a fact, and I'm guessing because I haven't been
following this thread closely, but I would wager some serious money that
if you stuck Compile_Opt idl2 in all of your program modules and
restarted IDL, that this problem would go away.

In fact, I'm going to double down on it! ;-)

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: equivalent width measurements
Next Topic: Re: Error Handling Advice

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

Current Time: Wed Oct 08 13:49:51 PDT 2025

Total time taken to generate the page: 0.00723 seconds