02-28-2005, 05:42 AM
I got this error message when I move the character in the game I'm making... What must I do to not have this error msg? Please help me!
EEL THE BEAT OF EURODANCE!!!
"Out of stack space" !?
|
02-28-2005, 05:42 AM
I got this error message when I move the character in the game I'm making... What must I do to not have this error msg? Please help me!
EEL THE BEAT OF EURODANCE!!!
02-28-2005, 09:17 AM
I had this error a couple of times.
It is NOT trappable (if the error occurs you can not prevent the msg). It could either be: 1. You have too many nested functions and/or subs. 2. You PUSHed or POKEd too much. If that was any help.
i]"But...it was so beautifully done"[/i]
02-28-2005, 02:06 PM
I figured what's wrong... I used a lot of goto-s like that:
Code: DO Now my prog runs OK
EEL THE BEAT OF EURODANCE!!!
03-01-2005, 02:41 AM
Or it could be GOTOs, LOL
I didn't consider them cause I never use GOTOs. Sorry.
i]"But...it was so beautifully done"[/i]
03-02-2005, 08:08 PM
A recursive SUB without a proper exit case can do it. Try this:
Code: CLS And the trouble maker SUB Code: SUB ME
03-03-2005, 03:28 AM
Yep, which was my number 1 reason I posted, too many nested functions or subs.
That code you have will have an infinite nested sub Me, within Me, within Me, etc. So depending how fast your computer is, it will take a millisec to a couple of seconds. Hmmm, I wonder if this is possible to do in VBA..... :rotfl: EDIT: For me it needs to go thought 127 of nested subs before it will crash.
i]"But...it was so beautifully done"[/i]
03-03-2005, 03:55 AM
Eurodance:
Instead of using GOTO GetKey, replace it with RETURN.
strosmash :
www.geocities.com/juice801980/astro.zip T.A.N.K : www.geocities.com/juice801980/tank.zip (right click, save-as...) |
« Next Oldest | Next Newest »
|