Runtime Warnings and Errors
When receiving a runtime warning during debugging it is important to note that this warning will not show up during the use of the actual released version of the program you are working on, the command will simply fail without giving a warning. Hence, it is vital for the stability of your game or application that you correct these warnings before the final build of the game/application is distributed.
The warning itself should give sufficient information to pinpoint the origin of the code that is raising the warning, giving you the basis to correct the problem.
Runtime errors are presented when there has been an error executing the code specified in the error message. Unlike runtime warnings, runtimes errors will cause the final build to crash or close upon the raising of the error. Once again, it is very important to rectify runtime errors as your game or application will not run properly and will most likely crash itself.
Syntax Errors and Parameter Mismatches
A syntax error will be raised when the execution of a specific command or function was unsuccessfully attempted because it was not recognized or found in the built-in functions. If a syntax error is found when calling a custom made function or sub make sure it was correctly created and defined. It the error was raised while trying to execute a built-in DarkBasic Pro function make sure the function was spelled properly and you passed the proper parameters.
Note: the spelling of commands and functions is not case sensitive in DarkBasic Professional.
Parameter mismatches are received when an incorrect parameter was given to a specific command or function. Make sure your gave the correct number of parameters, in the correct order, using the correct type of parameter data. For example, a math function would not take a string, but a number or integer.
Conclusion
Using correct syntax and supplying the correct parameters should help you in avoiding most error while coding your DarkBasic Professional game or application. Always make sure to rectify all error and warnings before distributing a build to the public to maximize your application stability and potential.
Published by James Cloud
I like to program and do basically anything that has to do with technology and computers. View profile
GPS User Errors and How to Avoid Them: The Dreaded Data Input ErrorThe most consistent source of gps error is the user. The errors usually result from incorrectly reading latitude and longitude coordinates from a chart or map.- Troubleshooting the "Autochk Program Not Found" ErrorThe "Autochk Program Not Found" error occurs when you try to uninstall Norton Antivirus. The Norton GoBack tool attaches itself to the hard drive and it will hide your partition when it uninstalls. You can easily solv...
- How to Dress Like a Professional Working ManIn the professional world, looking the part is every bit as important as acting the part. Men have to dress to impress in order to get attention and respect in their professional endeavors.
- Premiere Pro Series 36" Gas Range ReviewIf you're looking to buy a new gas range, than read this review to find out more about this amazing Premiere Pro Series Gas Range.
- State of Georgia Threatens to Body Slam Pro WrestlingOverview of the new rules regulating pro wrestling by the Georgia Athletic Commission
- The Basic Principles of Batch Process Program Development: Testing, Analyzing, and...
- Human Error and What to Do
- Troubleshooting the Windows "Limited or No Connectivity" Error
- Error Code 9838 and the 3G iPhone
- "Setup Cannot Copy the File Staxmem.Dll" Error Message
- How to Do Lens and Perspective Correction in Paint Shop Pro
- Amazon on Sales Rank Removals: "An Embarrassing and Ham-Fisted Cataloging Error"



