Thank you for telling me about infinite recursion. It is appreciated. Yes, I am guilty of this too.
Genevieve > >I've gotten these "out of memory" errors most often with infinite >recursion. I know you know what I'm talking about, Colin, so the >following is for Genevieve. > >Look for some place where a handler is calling itself--that's recursion, >and it can be a darn useful tool. It's a pretty tough concept for most >of us, though, so I usually steer beginners and intermediate programmers >away from recursion. > >Another way you can get infinite recursion is if you have two handlers >that call each other. A calls B, B calls A, A calls B back, B calls A >back, and so on until Director runs out of memory. > >It's much like the "out of office" messages we get on the list from time >to time. John Dork turns on his auto-responder when he goes on vacation, >but doesn't unsubscribe from the list. He gets a message from the list, >which generates an "out of office" response to the list--which he gets, >of course, generating another "out of office" response to the list, and >on and on until Tab runs screaming into the street. > _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]) Lingo-L is for learning and helping with programming Lingo. Thanks!]
