out of stack space?

I am getting an out of stack error, I have abour 200 countrols on this on form, and about 300 variables, some of the control are user controls that have control within them. Can the stack not handle that or is there possibly something else wrong?
LVL 9
sk33v3Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Brendt HessSenior DBACommented:
Usually, an out of stack space error is uncontrolled recursion, or a Circular call.  For example, you have Usercontrol A.  During its initialization routine, it calls Subroutine B, which initializes UserControl B, which calls Subroutine A, which initializes UserControl A, which calls subroutine B, which... well, you get the idea.

A recursive or circular reference will eat up stack space pronto.  How soon are you getting the out of stack space, and under what circumstances (on load of project, on load of compiled app, or what?)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sk33v3Author Commented:
well its not on the loading of a form but when i try to reference a variable from within one of my usercontrols. the source code has 1 line which just retreives the value from a flexgrid.
0
JacamarCommented:
this line probably gets executed over and over again.  I have had situations like that.  What procedure is it in?
0
sk33v3Author Commented:
ok Found it bhess was right it was a recursion type issue. i raised an event eveytime I left a certain cell. well the problem is that leaving the caused another leavecell event. so I basically had a never ending loop. Thanks Bhess
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.