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 / functions and severe exception

Author
Message
Cybermind
Valued Member
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 3rd Aug 2004 06:54
Hi, I am making an menu, you enter a sub menu that I call as a function, but when you try to return to the main menu I get an severe exception or DB quits to windows?!?!?!? I tried putting the sub menu in the main program file, and I got to work, but the code gets far to long for any overview, so I have to split it up, BUT THAT DARN THING WONT WORK when I spilt it back up?!?!?!?!?!
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 3rd Aug 2004 20:33
Are you returning "natutrally", that is, the function ends normally?

You can't GOSUB or GOTO back to the main routine.

BatVink
http://biglaugh.co.uk/catalog AMD 3000+ Barton, 512Mb Ram, 120 Gig Drive space, GeForce 5200 FX 128 Mb, Asus A7N8X Mobo.
Terms & Conditions apply
Cybermind
Valued Member
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 4th Aug 2004 20:57
no no, I use gosub and goto inside the function, there is nothing i try to access outside the function, I declare start and end of function, and call the function.

Login to post a reply

Server time is: 2025-05-26 00:39:04
Your offset time is: 2025-05-26 00:39:04