Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!nrl-cmf!cmcl2!vx2!spector From: spector@vx2.NYU.EDU (David HM Spector) Newsgroups: comp.sys.mac.hypercard Subject: Too Much Recursion! Where? Message-ID: <3150006@vx2.NYU.EDU> Date: 5 Sep 88 04:14:00 GMT Organization: New York University Lines: 52 I keep running into a strange problem in a set of stacks I am writing, and maybe someone out there has seen this and tell me what I am doing wrong. I keep running into the error message "Too much recursion". Now, looking at my HyperTalk scripts, I have _nothing_ that calls either 1) another script recur- sively, or 2) another stack recursively. What I do have are a number of things like the following: Example 1: -- This kind of script is usually called from a button or a mouseUp -- in a field set lockscreen to true push card go to stack "SomeOtherStack" (get some information or do something) pop card set lockscreen to false Example 2: -- This kind is usually in the Stack's script. on closeStack global tmpList put empty into tmpList set lockscreen to true repeat with i = 1 to number of cards put bg field "Name" after last line of tmpList end repeat -- then do something like example #1 to store the tmpList in a real -- field somewhere in another stack... end closeStack Am I seriously missing the boat here? Why do I get the recursion errors? Should all things that might jump around between stacks where other stack level scripts might be called go into the backgroung handler for the particular card background I am working with? Any ideas, suggestions and insights would be greatly appreciated... Thanks, _DHMS ------------------------------------------------------------------------------- David HM Spector New York University Senior Systems Programmer Graduate School of Business ARPAnet: SPECTOR@GBA.NYU.EDU Academic Computing Center USEnet:...!{allegra,rocky,harvard}!cmcl2!spector 90 Trinity Place, Rm C-4 HamRadio: N2BCA MCIMail: DSpector New York, New York 10006 AppleLink: D1161 CompuServe: 71260,1410 (212) 285-6080 "What computer puts out work like this?" "Hire us and we'll tell you."