?
Solved

out of stack space?

Posted on 2003-03-27
4
Medium Priority
?
309 Views
Last Modified: 2010-04-07
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?
0
Comment
Question by:sk33v3
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 32

Accepted Solution

by:
Brendt Hess earned 200 total points
ID: 8220856
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
 
LVL 9

Author Comment

by:sk33v3
ID: 8220898
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
 
LVL 2

Expert Comment

by:Jacamar
ID: 8221084
this line probably gets executed over and over again.  I have had situations like that.  What procedure is it in?
0
 
LVL 9

Author Comment

by:sk33v3
ID: 8221099
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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month11 days, 20 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question