i not seen it crash , but the code did have several goto's to a few other subroutines"Don't missunderstand, there can be one GOSUB and twenty RETURN statements in a program, or the other way around, no problems but you can not keep pusing return addresses on the call stack without eventually taking them off."
most old subs in this code had a error checking of "status test" , to do would be called from many places in the code , some times within several subroutines deep before the error checking routine was called
then if the error check was positive in the routine it would then do a goto another subroutine to a menu and the option it would then show for the error never to return to orginating sub
so from this it would mean the deeper in of other subroutines the error check routine was called would be left on the stack as far as i can see ???
not a good , but never saw a a crash , but maybe that error did not occur perhaps , but seems like its not a thing to be done -
i am reviweing to so that error subs are a goto from the outset , but this then requires a return location from each differnat location its called from , and the more error checkdone in the subrouint the more options of goto creates , but this is really messy stuff
what i would like is the ability to have my return and eat it too , lol , but cant see how that would work as clearing the last "return" address , still leaves all the other return address that may have been stacked prior to the sub that had the goto in it , too bad i cant request a fluch of the stack of the now un need returns - but that just bad programing
just have to redo all the error checking so that is one level or returns to the calling routine and returns i think
Bookmarks