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 Professional Discussion / Why does this code crash? Unhandled error.

Author
Message
Mage
17
Years of Service
User Offline
Joined: 3rd Feb 2007
Location: Canada
Posted: 17th Oct 2017 02:46
Here is a screen capture of what is happening.


Here is the code, no media required. The code should execute as is.


Why does this crash? I am getting annoyed as it seems returning strings is crashing things.
Mage
17
Years of Service
User Offline
Joined: 3rd Feb 2007
Location: Canada
Posted: 17th Oct 2017 02:55 Edited at: 17th Oct 2017 02:56
Looks like this was the problem.
https://forum.thegamecreators.com/thread/174328
Exit Function "" and EndFunction "" will destabilize the program and cause it to crash. Probably when another section of code attempts to access the string. Must return a variable for strings (unlike integers).

Login to post a reply

Server time is: 2024-03-01 00:29:40
Your offset time is: 2024-03-01 00:29:40