Re: bug in program going from pc to sun [message #11309] |
Wed, 25 March 1998 00:00  |
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
|
|
|