• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 205
  • Last Modified:

out of stack space

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:

         unload me
1 Solution
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.
idlebugAuthor Commented:
Adjusted points to 25
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now