Runtime Errors

A runtime error is an error that occurs during application execution. These errors are not predictable and occur due to programming errors that are not visible at compile time. An example of a runtime error is creating an application and giving users the ability to specify a filename, but then the file is not found on disk; another example is needing to access a database and passing an incorrect SQL query string. Obviously, in real-life applications, you should predict such possibilities and implement the appropriate error-handling routines (discussed in Chapter 6), but for the purpose of learning about the debugger, you need some code that voluntarily causes an error. If you continue with the debugging you began in the previous ...

Get Visual Basic 2015 Unleashed now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.