Re: invalid key to 'next'
James Porter <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
Agi Shi wrote: > This is my lua code: http://lua.pastebin.com/f7b33bcca > > It's in a function called createGUI(). I've omitted the function itself > and a few unneeded lines. I call this function from C++ as such Well, that's probably where the error is occurring. "invalid key to 'next'" usually occurs if you are iterating over your table and you modify it during iteration. - Jim ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://www.creativitycat.com