Solved

out of stack space

Posted on 1999-01-27
2
196 Views
Last Modified: 2010-05-03
how come that whenever i would close a form in my program i would usually get this error message although my code is working. what's the problem?

   this is what i usually put in my close button:

       data1.database.close
         unload me
0
Comment
Question by:idlebug
2 Comments
 
LVL 10

Accepted Solution

by:
caraf_g earned 20 total points
ID: 1470846
You are causing an event loop.

This could be caused by an event A triggering an event B which then triggers an event C which then triggers event A again ad infinitum.

You may get an indication of what's happening by putting a break point in your Close button and stepping through the code.

Every event loop is different so I would have to see all your code to be able to suggest a course of action to fix your problem.
0
 

Author Comment

by:idlebug
ID: 1470847
Adjusted points to 25
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

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

13 Experts available now in Live!

Get 1:1 Help Now