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.

Bug Reports / DBPro 7.5 - Compiler bug with input command causes crash at runtime

Author
Message
UOAbigail
13
Years of Service
User Offline
Joined: 16th Aug 2010
Location:
Posted: 16th Aug 2010 20:38
Greetings. New to forums (and to DBPro itself), but I encountered this bug earlier today when I modified an input command to instead be a print command.. but forgot to change 'input' to 'print' in the command itself after removing the semicolon and variable.

The compiler does not report that the input is missing a variable and it compiles. When run, the execution crashes the application.

As I am new and have not yet read how to post code snippets, I will post this inline, as it is small.

----------
cls
print "Bug test"
input "Hello there"
--------------

Compiles fine with no errors, but crashes when run. (I know its a noob mistake to do this in the first place, but I somehow managed to forget to modify the command to instead 'print')

This may happen to others and cause unexpected/hard-to-track-down crashes.

If this has already been reported, I apologize for wasting your time.

Peace
UOAbigail

-DBPro Noob-
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 16th Aug 2010 22:39
I agree. The compiler should detect that it's been given a string rather than a string variable.

I know that's not what you intended but the compiler doesn't know that - it should still give an error when you haven't followed the correct syntax even if you intended something else entirely.

Login to post a reply

Server time is: 2024-03-28 16:27:51
Your offset time is: 2024-03-28 16:27:51