Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hoptoad!tim From: tim@hoptoad.uucp (Tim Maroney) Newsgroups: comp.sys.mac.hypercard Subject: Re: Stack overflow Message-ID: <10158@hoptoad.uucp> Date: 10 Feb 90 20:12:38 GMT References: <52023@bbn.COM> Reply-To: tim@hoptoad.UUCP (Tim Maroney) Organization: Eclectic Software, San Francisco Lines: 20 The "stack overflow" error in Plus is probably the same as the "too much recursion" error in HyperCard. It means that a script is invoking itself (perhaps indirectly through another script) and continuing to invoke itself until the script stack overflows. With each invocation of a script, the old script state is pushed on a data structure called a stack, to be popped off the stack later when the invoked script finishes. The stack can only hold so many script states. You can test if this what the error message means by simply writing a self-invoking stack, then invoking it from the message box and seeing what error you get. on wombat wombat end wombat -- Tim Maroney, Mac Software Consultant, sun!hoptoad!tim, tim@toad.com "Americans will buy anything, as long as it doesn't cross the thin line between cute and demonic." -- Ian Shoales