• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: stack overflow ???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stack overflow ???


  • Subject: Re: stack overflow ???
  • From: Emmanuel <email@hidden>
  • Date: Wed, 11 Dec 2002 20:05:17 +0100

At 3:02 PM +0100 11/12/02, Monsoft wrote:

stack overflow
-2706 error
I have the same error when running it using Script Debugger 3.05 Carbon.
Is there a memory allocation problem? How to solve that?

In case Paul's reply did not solve the point, and in case you don't know, the stack is where programs store the current context when jumping to a routine, so that when they return from the routine they safely find all their context back:

set x to 2
set y to 3
set z to SomeRoutine()
-- what really happens:
-- "push" y then x into the stack
-- run "SomeRoutine()" and store result in special register
-- "pop" x then y from the stack
-- create a new "z" variable, set it to the special register's value

That to say that quite often a scripter's stack overflow is what happens when the script enters an infinite recursion or sequence of nested calls:

on a()
return b()
end

on b()
return a()
end

a() -- don't do this at home

Emmanuel
en voisin (Fresnes, 94)
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >stack overflow ??? (From: Monsoft <email@hidden>)

  • Prev by Date: Re: Stuck trying to use creatorid to control IE
  • Next by Date: Re: Variables inside handlers
  • Previous by thread: Re: stack overflow ???
  • Next by thread: How can I do Paste cell in Sherlock 2 in Os 9.2.2
  • Index(es):
    • Date
    • Thread