Thread Subject:
Problem "Maximum recursion limit of 500 reached"

Subject: Problem "Maximum recursion limit of 500 reached"

From: Francesco Milano

Date: 24 Nov, 2011 12:21:09

Message: 1 of 2

Hi guys,
I'm a student that want learn the Matlab software for future use.
I have viewed in Command Window, this error:

??? Error while evaluating uicontrol Callback

??? Maximum recursion limit of 500 reached. Use set(0,'RecursionLimit',N)
to change the limit. Be aware that exceeding your available stack space can
crash MATLAB and/or your computer.

I have no idea how to solve this problem.
How can i do?


thanks

Subject: Problem "Maximum recursion limit of 500 reached"

From: Rune Allnor

Date: 24 Nov, 2011 12:29:29

Message: 2 of 2

On 24 Nov, 13:21, "Francesco Milano" <fnc.mil...@gmail.com> wrote:
> Hi guys,
> I'm a student that want learn the Matlab software for future use.
> I have viewed in Command Window, this error:
>
> ??? Error while evaluating uicontrol Callback
>
> ??? Maximum recursion limit of 500 reached. Use set(0,'RecursionLimit',N)
> to change the limit.  Be aware that exceeding your available stack space can
> crash MATLAB and/or your computer.
>
> I have no idea how to solve this problem.
> How can i do?

Error message might apepar cryptic, but are actually
rather informative. You need to read the error message,
contemplate what it might mean, and then try and figure
out where in your code the error might be.

Since you mention UI callbacks, I wouldn't be
surprised if you have two functions, say, f and g,
that call each other:

function f
   g;
end

function g
   f;
end

As you see, these functions keep calling
each other ad infinitum. So there is a maximum
limit to how many times this can happen before
matlab complains.

What you need to do, is to review your code to
look for patterns like above. If you find that
kind of pattern, you have a design issue in your
code. You then need to find out what you attempt
to do, why what you tried is wrong, and what to
do instead.

Rune

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
maximum recursion ... Francesco Milano 24 Nov, 2011 07:24:10
rssFeed for this Thread

Contact us