Solved

weird stack error .

Posted on 2002-06-27
4
170 Views
Last Modified: 2010-05-02
i have a programs that uses crystal reports on an odbc access database, everything runs fine until i try to exit the program after running 2 reports, if i run one report and close the programs closes fine, but if i run 2 reports and then close it, at the end before it unloads gives me a error 28 out of stack space error .

any ideas ????
0
Comment
Question by:tryingtoprogram
4 Comments
 
LVL 5

Accepted Solution

by:
bob_online earned 75 total points
ID: 7113445
You're going to have to either put in a break point and step through the code when the app closes, put in pop up msgboxes to tell what is really executing or write to a log file.  Rather than shutting down, some event is repeatedly executing code until it chews up the stack space.  Depending on the event, it may not occur with break points in the develpment environment.  Msgboxes that basically just display the procedure name they are in may be your best course for figuring out what is going on.
0
 

Author Comment

by:tryingtoprogram
ID: 7115528
it is not a procedure chewing the stack because, i've done step by step the code and the error comes up on the unload script of the main form, BUT this only happens when 2 crystal reports have been created. SO it is not a recursive or procedure because it dose NOT happen whe only one report is created before exiting the program. Also the error only comes up at unload time, i can run the program all i want create and close all the crystal reports i want but when i exit the main form , BOOM error busts in. 28 out of stack space.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7964574
Hi tryingtoprogram,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept bob_online's comment(s) as an answer.

tryingtoprogram, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 5

Expert Comment

by:Netminder
ID: 8014817
Per recommendation, force-accepted.

Netminder
EE Admin
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now