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

Home » Public Forums » archive » Re: bug in program going from pc to sun
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
Re: bug in program going from pc to sun [message #11309] Wed, 25 March 1998 00:00
David Foster is currently offline  David Foster
Messages: 341
Registered: January 1996
Senior Member
Vern Stark wrote:
>
> On Mon, 23 Mar 1998 08:55:49 -0500, Ebeth Jones
> <Elizabeth.Jones@lmco.com> wrote:
>
>> a weird problem - i have exactly the same code trying to
>> run on both a pc and a sun workstation. it works fine on
>> the pc, but on the sun the program calls a function that
>> has about 20 parameters, and the sun idl debugger comes
>> back with an error message saying that only 8 subscripts
>> are allowed. Is this an inherent difference between the SUN
>> and PC versions or do I have something else going on here?

Don't know why it's different on the Sun, but IDL thinks your
function call is an array reference (it doesn't know about the
function). Either make sure your function is defined prior to
this call, or use FORWARD_FUNCTION <FUNC_NAME> to declare the
function.

>>
>> Ebeth Jones
>
> I have a similar problem. I ported code from an SGI to a Windows 95
> system (making very minor changes). On the SGI, the code works fine.
> On the Windows 95 platform, I've encountered two errors so far. One
> is particularly difficult to understand. I call WIDGET_CONTROL to set
> the cursor to an hourglass. The cursor always gets properly set to an
> hourglass on the SGI but this works intermittently in Windows 95. I
> can get it to always work on the PC by putting two successive calls to
> WIDGET_CONTROL, but why would I need two calls? The other error is
> more serious, a reference to a nonexistant widget.

Are you using the latest version of IDL. I've seen this error before,
intermittently, and it has improved by upgrading to IDL 5.0.3.

Dave
--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2240
La Jolla, CA 92037
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
Re: bug in program going from pc to sun [message #11313 is a reply to message #11309] Wed, 25 March 1998 00:00 Go to previous message
vern.stark is currently offline  vern.stark
Messages: 6
Registered: January 1995
Junior Member
On Mon, 23 Mar 1998 08:55:49 -0500, Ebeth Jones
<Elizabeth.Jones@lmco.com> wrote:

> a weird problem - i have exactly the same code trying to
> run on both a pc and a sun workstation. it works fine on
> the pc, but on the sun the program calls a function that
> has about 20 parameters, and the sun idl debugger comes
> back with an error message saying that only 8 subscripts
> are allowed. Is this an inherent difference between the SUN
> and PC versions or do I have something else going on here?
>
> Ebeth Jones

I have a similar problem. I ported code from an SGI to a Windows 95
system (making very minor changes). On the SGI, the code works fine.
On the Windows 95 platform, I've encountered two errors so far. One
is particularly difficult to understand. I call WIDGET_CONTROL to set
the cursor to an hourglass. The cursor always gets properly set to an
hourglass on the SGI but this works intermittently in Windows 95. I
can get it to always work on the PC by putting two successive calls to
WIDGET_CONTROL, but why would I need two calls? The other error is
more serious, a reference to a nonexistant widget.

I don't have any answers, and would appreciate it if anyone can shed
some light on this.

Vern Stark
Re: bug in program going from pc to sun [message #11338 is a reply to message #11309] Mon, 23 March 1998 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Elizabeth Jones (Elizabeth.Jones@lmco.com) writes:

> a weird problem - i have exactly the same code trying to
> run on both a pc and a sun workstation. it works fine on
> the pc, but on the sun the program calls a function that
> has about 20 parameters, and the sun idl debugger comes
> back with an error message saying that only 8 subscripts
> are allowed. Is this an inherent difference between the SUN
> and PC versions or do I have something else going on here?

I'm betting on something else going on there. :-)

Cheers,

David

P.S. I'm guessing that the way the programs are compiled
are different on the Sun and the PC (e.g., the Path is
set up differently). I think the IDL compiler thinks the
function is a variable and not a function. Make sure that
the function code is compiled before it is called, or use
the Forward_Function declaration.

-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: SSM/I colour table request!
Next Topic: Re: date question

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

Current Time: Wed Oct 08 20:02:50 PDT 2025

Total time taken to generate the page: 0.44116 seconds