![]() |
|
|
#1 | ||
|
College Prospect
Join Date: Nov 2003
Location: Flower Mound, TX
|
VB 6.0 Error Message
I just got an error message that really confuses me.
Run Time Error '28': Out of stack space Here's what happened: I was doing some design testing on a program I'm working on. I have a form that I use as sort of a launch pad, meaning that the user can access different areas of the program from a menu bar on the left hand side. Right now, I have two Sub Procedures that actually do stuff. I only get this error message when I select one option, but not the other one. Also, when I receive the error message, the program is breaking at the first subroutine that the procedure calls. Here's a rough outline of the program to illustrate. Private Sub loadOpportunity lblHeader.Caption = "Opportunity" 'Shows up as a title on a display frame. 'Declare local variables. Dim nCounter As Integer 'Used for a loop further down in the program. (This is where the error message appears). Call handleDisplay(True) 'Sub routine used to set a flex grid to visible. ....More stuff End Sub Public sub handleDisplay(blnIndex As Boolean) frmGameMain.grdDisplay.Visible = blnIndex End Sub The explanation I found said something like this was resulting from a lack of memory space. I'm not sure why this is happening. Is there a limit to how many procedures/functions you can have on one module? I removed some of the procedures and placed them in another module and made them public so that I could still access them from this one. Anybody ever seen this before or have any ideas about what I'm doing wrong? |
||
|
|
|
|
|
#2 |
|
College Prospect
Join Date: Nov 2003
Location: Flower Mound, TX
|
Never mind, I figured out what I was doing wrong.
|
|
|
|
|
|
#3 |
|
Pro Starter
Join Date: Jul 2003
Location: South Bend, IN
|
Out of stack space usually means that you accidentally kicked off an "infinite" recursion. In your case, I'd presume that it was a tortured chain of event procedures kicking off other events?
__________________
Hattrick - Brays Bayou FC (70854) / USA III.4 Hockey Arena - Houston Aeros / USA II.1 Thanks to my FOFC Hattrick supporters - Blackout, Brillig, kingfc22, RPI-fan, Rich1033, antbacker, One_to7, ur_land, KevinNU7, and TonyR (PM me if you support me and I've missed you) |
|
|
|
|
|
#4 |
|
College Prospect
Join Date: Nov 2003
Location: Flower Mound, TX
|
Yeah, I think I was calling the event that I was in. Need to get more sleep before I post questions.
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|