Buon giorno Aurora,
"kid stack limit exceeded" means that you have created to many objects.
Many objects are registered with the RegisterKid() function to be
retained even after a garbage collection (please see the RegisterKid()
help for a better explanation of this).
And, like any other list, also the list of registered kids has a limit,
and you are exceeding that.
And, as Jamal wrote, normally (at least in my applications) this is
occurring only when I have an endless loop (a function or method
calling itself).
Before this error is showing up, you should see that your application
becomes slow and is taking up an entire processore core ressources
(depending on your PC, the task manager should show a 20% or 25% or
even 50% CPU allocation of your application).
In my code, this is occurring when I have code like this:
method xxx() class Pippo
....
self:xxx()
....
return nil
To be honest, I have that 2 to 3 times a month, mostly when I split up
classes, and forget to change the self:xxx() to a super:xxx().
Another possibility is that you are reacting on an event, and your code
triggers that event again.
Wolfgang
--