Stack Overflow

  • Thread starter Thread starter Dave
  • Start date Start date
This usually happens if the code is recursive (calling itself), or possibly
reentrant (e.g. where an event procedure such as Click of a button contains
a Doevents that allows it to be called again, and the user is holding the
repeating button down), or where one event/procedure calls another that
triggers the first again.
 
Improper use of the evil Goto can also cause this. For example if you do a
Goto that goes outside the sub or function you are in. The routine you left
stays resident because it has yet to complete. This is one of the primary
reasons for the basic law against using Goto.
 
Back
Top