?
Solved

weird stack error .

Posted on 2002-06-27
4
Medium Priority
?
176 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 5

Accepted Solution

by:
bob_online earned 300 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses
Course of the Month9 days, 15 hours left to enroll

762 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