Re: stack overflow ???
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.