Path: utzoo!attcan!uunet!husc6!bloom-beacon!gatech!purdue!i.cc.purdue.edu!j.cc.purdue.edu!pur-ee!uiucdcs!uxc.cso.uiuc.edu!uxg.cso.uiuc.edu!dorner
From: dorner@uxg.cso.uiuc.edu
Newsgroups: comp.sys.mac.hypercard
Subject: Re: Animate?
Message-ID: <36600003@uxg.cso.uiuc.edu>
Date: 31 May 88 15:50:00 GMT
References: <1939@ssc-vax.UUCP>
Lines: 34
Nf-ID: #R:ssc-vax.UUCP:1939:uxg.cso.uiuc.edu:36600003:000:1066
Nf-From: uxg.cso.uiuc.edu!dorner    May 31 10:50:00 1988


>going to successive cards in a stack, waiting a few ticks at each
>card, starting from the openCard handler of the first card.  After about 6
>cards, however, I get the error "Too Much Recursion".  Why do I get
>this error and what does it mean?

I assume you are using something like:

	on openCard
	     -- delay a while
	    go next card
	end

If so, the openCard handlers are probably not getting closed.  The first
card's handler doesn't complete until you are at the next card; you aren't
at the next card until the openCard handler for the next card completes.
The openCard handler for the next card can't complete until you are at
the third card...

If this is indeed your problem, replace your openCard handlers with
a simple repeat loop:

	on animate
	    repeat the number of cards
		 -- delay a while
		go next card
	    end repeat
	end animate

This will avoid the recursion problem.
----
Steve Dorner, U of Illinois Computing Services Office
Internet: dorner@uxc.cso.uiuc.edu  UUCP: ihnp4!uiucuxc!dorner
IfUMust:  (217) 333-3339