Front Office Football Central  

Go Back   Front Office Football Central > Archives > FOFC Archive
Register FAQ Members List Calendar Mark Forums Read Statistics

Reply
 
Thread Tools
Old 01-04-2005, 12:11 PM   #1
Cap Ologist
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?

Cap Ologist is offline   Reply With Quote
Old 01-04-2005, 03:06 PM   #2
Cap Ologist
College Prospect
 
Join Date: Nov 2003
Location: Flower Mound, TX
Never mind, I figured out what I was doing wrong.
Cap Ologist is offline   Reply With Quote
Old 01-04-2005, 10:27 PM   #3
Mr. Wednesday
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)
Mr. Wednesday is offline   Reply With Quote
Old 01-04-2005, 11:01 PM   #4
Cap Ologist
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.
Cap Ologist is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Forum Jump


All times are GMT -5. The time now is 05:00 PM.



Powered by vBulletin Version 3.6.0
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.