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

Home » Public Forums » archive » Re: Interpreter stack not aligned properly during user return.
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: Interpreter stack not aligned properly during user return. [message #38369] Fri, 05 March 2004 08:28 Go to next message
Nuno Oliveira is currently offline  Nuno Oliveira
Messages: 75
Registered: October 2003
Member
Besides this, there is a strange behaviour. I get the error message several
times and I can see an important and complex FOR cycle executed that times.
But when I put an error right after that FOR cycle I get my print out
message between idl's error messages

Like:



& Interpreter stack not aligned properly during user return.

& Interpreter stack not aligned properly during user return.

'my error message'

& Interpreter stack not aligned properly during user return.



"Nuno Oliveira" <nmoliveira@fc.ul.pt> wrote in message
news:c2a6n4$fhn$1@pegasus.fccn.pt...
> Interpreter stack not aligned properly during user return.
>
> Can anyone help about this error message? What may cause this?
>
> By the way. Is, in IDL tutorials, a section what interpreting error
> messages?
>
> Cheers,
>
> Nuno.
>
Re: Interpreter stack not aligned properly during user return. [message #38370 is a reply to message #38369] Fri, 05 March 2004 08:24 Go to previous messageGo to next message
Nuno Oliveira is currently offline  Nuno Oliveira
Messages: 75
Registered: October 2003
Member
The program is calling a function from a separate file, but written in IDL.

All the code, and functions it calls are written in IDL.



"Craig Markwardt" <craigmnet@REMOVEcow.physics.wisc.edu> wrote in message
news:on8yifz3zw.fsf@cow.physics.wisc.edu...
>
> Nuno Oliveira <nmoliveira@fc.ul.pt> writes:
>
>> Interpreter stack not aligned properly during user return.
>>
>> Can anyone help about this error message? What may cause this?
>>
>> By the way. Is, in IDL tutorials, a section what interpreting error
>> messages?
>
> You don't say, but presumably you are calling an external routine (not
> an IDL procedure). Is that true? It probably means that your
> external routine scrambled the stack.
>
> Craig
>
> --
> ------------------------------------------------------------ --------------
> Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
> Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
> ------------------------------------------------------------ --------------
Re: Interpreter stack not aligned properly during user return. [message #38372 is a reply to message #38370] Fri, 05 March 2004 07:51 Go to previous messageGo to next message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Nuno Oliveira <nmoliveira@fc.ul.pt> writes:

> Interpreter stack not aligned properly during user return.
>
> Can anyone help about this error message? What may cause this?
>
> By the way. Is, in IDL tutorials, a section what interpreting error
> messages?

You don't say, but presumably you are calling an external routine (not
an IDL procedure). Is that true? It probably means that your
external routine scrambled the stack.

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
Re: Interpreter stack not aligned properly during user return. [message #38373 is a reply to message #38372] Fri, 05 March 2004 08:14 Go to previous messageGo to next message
Nuno Oliveira is currently offline  Nuno Oliveira
Messages: 75
Registered: October 2003
Member
Well, I'm using a lots of pointers... :(



And the program has an big error, and I'm afraid that the problem is coming
from that one that originates the error message.



"David Fanning" <david@dfanning.com> wrote in message
news:MPG.1ab254225009c5d29896e5@news.frii.com...
> Nuno Oliveira writes:
>
>> Interpreter stack not aligned properly during user return.
>
> Are you using pointers? I have a couple of brain cells
> vaguely recalling something about storing a scalar value
> in a pointer....??? Something.
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: Interpreter stack not aligned properly during user return. [message #38376 is a reply to message #38372] Fri, 05 March 2004 08:09 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Nuno Oliveira writes:

> Interpreter stack not aligned properly during user return.

Are you using pointers? I have a couple of brain cells
vaguely recalling something about storing a scalar value
in a pointer....??? Something.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: Interpreter stack not aligned properly during user return. [message #38377 is a reply to message #38372] Fri, 05 March 2004 08:00 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Nuno Oliveira writes:

> Interpreter stack not aligned properly during user return.

Oh, oh. Have you evacuated the premises yet?

> Can anyone help about this error message? What may cause this?

I don't know what causes it. But it's bad news. VERY hard to
track down. Almost always (in my experience) a user error.
A very *obscure* user error. Hope you have a nice weekend. :-)

> By the way. Is, in IDL tutorials, a section what interpreting error
> messages?

I don't think you completely understand the software business.

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: Interpreter stack not aligned properly during user return. [message #38468 is a reply to message #38369] Fri, 05 March 2004 08:36 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Nuno Oliveira writes:

> Besides this, there is a strange behaviour. I get the error message several
> times and I can see an important and complex FOR cycle executed that times.
> But when I put an error right after that FOR cycle I get my print out
> message between idl's error messages

Yeah, you are doing something wrong with those pointers. :-)

If writing about it hasn't helped, then I think you have
to step through the code, checking your assumptions about
what is happening at every step. I think you are assuming
something that just isn't so.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
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: Hue Saturation Value... how to display the hue channel of an image
Next Topic: Re: Hue Saturation Value... how to display the hue channel of an image

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

Current Time: Wed Oct 08 13:54:42 PDT 2025

Total time taken to generate the page: 0.00658 seconds