473,379 Members | 1,533 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Out of Stack Space

I'm getting 'Out of Stack Space' error messages. The process involves
two forms. Form A opens Form B in dialog mode and passes through
OpenArgs.

Form B contains a 'Tab' control having two pages. The 'Out of Stack
Space' error always (nearly always) occurs when clicking the 2nd page
tab. It doesn't occur anyway else in the project.

On testing, turning off all the 'On Error GoTo' statements the
offending line is set at Form A on the 'DoCmd.OpenForm' statement.
Checking the 'Call Stack' only shows two event procedures, the event
procedure 'command_button _click()' and a 'listbox_DblClick()' event
procedures. As far as I can tell there is nothing recursive
happening.

Any clues please.

Sep 23 '06 #1
5 11472
superjacent wrote:
I'm getting 'Out of Stack Space' error messages.
Any clues please.
I don't know; Did it pop up right after the 42 DDD message?

Sep 23 '06 #2
I'm getting 'Out of Stack Space' error messages.

Perhaps this applies:

http://support.microsoft.com/kb/96988/en-us

superjacent wrote:
I'm getting 'Out of Stack Space' error messages. The process involves
two forms. Form A opens Form B in dialog mode and passes through
OpenArgs.

Form B contains a 'Tab' control having two pages. The 'Out of Stack
Space' error always (nearly always) occurs when clicking the 2nd page
tab. It doesn't occur anyway else in the project.

On testing, turning off all the 'On Error GoTo' statements the
offending line is set at Form A on the 'DoCmd.OpenForm' statement.
Checking the 'Call Stack' only shows two event procedures, the event
procedure 'command_button _click()' and a 'listbox_DblClick()' event
procedures. As far as I can tell there is nothing recursive
happening.

Any clues please.
Sep 23 '06 #3

Lyle Fairfield wrote:
I don't know; Did it pop up right after the 42 DDD message?
What's this?

Sep 23 '06 #4
I'm not sure about your out of stack space error - do let us know what you
find out.
But I wanted to let you know, in case you don't, that you can change a
setting in the vba environment to make the code break on all errors, so you
don't have to go turning off each 'on error goto' statement. It's in
tools-options, not sure which tab now, but you'll find it.
-john

"superjacent" <su*********@gmail.comwrote in message
news:11*********************@e3g2000cwe.googlegrou ps.com...
I'm getting 'Out of Stack Space' error messages. The process involves
two forms. Form A opens Form B in dialog mode and passes through
OpenArgs.

Form B contains a 'Tab' control having two pages. The 'Out of Stack
Space' error always (nearly always) occurs when clicking the 2nd page
tab. It doesn't occur anyway else in the project.

On testing, turning off all the 'On Error GoTo' statements the
offending line is set at Form A on the 'DoCmd.OpenForm' statement.
Checking the 'Call Stack' only shows two event procedures, the event
procedure 'command_button _click()' and a 'listbox_DblClick()' event
procedures. As far as I can tell there is nothing recursive
happening.

Any clues please.

Sep 23 '06 #5
I think I've sort of resolved this problem. After making many design
changes, one in particular replacing multi-dimensional arrays with
tempoary tables (which in itself didn't fix the problem).

Form A (unbound) calls Form B, modally. Form B (unbound) contained a
tab control with two pages. There are a number of combo boxes on both
pages. On the second page I had a combo box with the rowsource set to
a value list "0,No,-1,Yes". Other settings for this combo were
correctly set. This particular combo box received the focus when
clicking the second page tab. Upon clicking the second page tab is
where I was getting the 'out of stack space' error.

When I changed the combo box to a check box, presto, no more 'out of
stack space' errors.

I realize that this is not a definitive solution but now I can proceed
and hopefully deploy this supposedly simple application sometime during
the week.

Thankyou for everyone's input.

Steve.

John Welch (remove remove) wrote:
I'm not sure about your out of stack space error - do let us know what you
find out.
But I wanted to let you know, in case you don't, that you can change a
setting in the vba environment to make the code break on all errors, so you
don't have to go turning off each 'on error goto' statement. It's in
tools-options, not sure which tab now, but you'll find it.
-john
Sep 24 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Kevin Grigorenko | last post by:
Hello, I couldn't find an obvious answer to this in the FAQ. My basic question, is: Is there any difference in allocating on the heap versus the stack? If heap or stack implementation is not...
2
by: news.tkdsoftware.com | last post by:
Aside from comp.compilers, is there any other forum, newsgroup or medium where I can post questions concerning the development of a byte code compiler & virtual stack machine? --
10
by: Shuo Xiang | last post by:
Greetings: I know that variables declared on a stack definitely does not reside in heap space so there is only a very limited amount of stuff that you can store in the stack of a function. But...
4
by: Victor | last post by:
Hello, I've got a situation in which the number of (valid) recursive calls I make will cause stack overflow. I can use getrlimit (and setrlimit) to test (and set) my current stack size. ...
20
by: Sushil | last post by:
Hi gurus I was reading FAQ "alloca cannot be written portably, and is difficult to implement on machines without a conventional stack." I understand that the standard does not mandate...
1
by: Geiregat Jonas | last post by:
I'm reading Eric Gunnerson's book. He is talking about the heap and stack, he says you have 2types, value wich are in the stack or inline or reference types wich are in the heap. I don't get...
3
by: nahur | last post by:
why do you need a heap and a stack why not all memory called a heap or call it a stack what is the purpose of having a heap and a stack
9
by: shine | last post by:
what is the difference between a heap and a stack?
9
by: Ajay | last post by:
Hi all, Can I know what is the stack space and heap space allocated by the compiler.Can i increase it or decrease it.if yes,pleae tell me theway to do it.Thanks in advance. Cheers, Ajay
11
by: tom | last post by:
Hi! Im new to Python and doing exercise found from internet. It is supposed to evaluate expression given with postfix operator using Stack() class. class Stack: def __init__(self): self.items...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.