Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Runtime Error?

Author
Message
ImAcOmputerGeek
21
Years of Service
User Offline
Joined: 31st May 2003
Location:
Posted: 1st Jun 2003 00:50
What is a "stack oferflow error" ?
It happens when my program runs once and it goes back to loop and to goto a subroutine. How do you fix it? Thanks in advance? So much!
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 1st Jun 2003 02:19
Sounds like you've created a never ending loop by accident and blown the memory.

Thanks in advance.
All the Best,
StevieVee
ImAcOmputerGeek
21
Years of Service
User Offline
Joined: 31st May 2003
Location:
Posted: 1st Jun 2003 08:58
Thanks I'll try changing it

12 year newb
Smurf
21
Years of Service
User Offline
Joined: 26th May 2003
Location:
Posted: 1st Jun 2003 09:09
blown? id think more or less over loaded it, or asked for to much.

bitJericho
22
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 1st Jun 2003 11:32 Edited at: 1st Jun 2003 11:33
what u did is cause the program to create new instances of a loop,and because of the nature of the program, it needs to store where it left from the last point in code so it can jump back, but you probably didn't let the code jump back properly, for instance.. a stack overflow will be caused by this...



this is the correct code



another reason why goto and gosub are bad:p if I were to put this in my program I would keel over:p, this is how something like this should be written



do you understand now why you got that overflow error...I dunno if I helped any..maybe someone else can explain better

The 3D Modeler's Group : http://groups.yahoo.com/group/3dModeler/
The Unofficial DB Newsgroup : http://groups.yahoo.com/group/DBMag/
ImAcOmputerGeek
21
Years of Service
User Offline
Joined: 31st May 2003
Location:
Posted: 2nd Jun 2003 02:22
Ya thanks A lot. It helpped very much. it works now

12 year newb

Login to post a reply

Server time is: 2025-05-18 16:11:41
Your offset time is: 2025-05-18 16:11:41