Hi,
I’m trying to get the projects list as per month. Then I’m getting an
error “stack level too deep”… could any body please tell me wats this
error exactly mean??
Harish
Hi,
I’m trying to get the projects list as per month. Then I’m getting an
error “stack level too deep”… could any body please tell me wats this
error exactly mean??
Harish
On 9/19/06, Naga harish Kanegolla [email protected]
wrote:
Hi,
I’m trying to get the projects list as per month. Then I’m getting an
error “stack level too deep”… could any body please tell me wats this
error exactly mean??Harish
It almost certainly means you have an (unintentional?) recursion in
your code (a function that calls itself, which calls itself, etc…):
def recurse
recurse
recurse
Every time a function is called, a new frame is added on the stack. At
some point, the Ruby interpreter decides that you have way too many
stack frames and throws that error.
If you want to post the offending piece of code, we might be able to
help with more specifics.
Max
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs