Solved

weird stack error .

Posted on 2002-06-27
4
172 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VBScript - Find file starting with XXXX use that in runnig rest of code 9 75
MsgBox 2 54
Excel Automation VBA 19 67
VB6 - Scroll Mouse wheel on Picturebox 13 42
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

813 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

14 Experts available now in Live!

Get 1:1 Help Now