delphi线程异常处理
Unfortunately, building applications includes coding. Regardless of how carefully you write/debug your program, it will be impossible to imagine every situation that can go wrong. The inexperienced user might, for example, try to open a nonexisting file or input a bad value into a data field.Users make mistakes and we should be prepared to handle/prevent these errors wherever and whenever possible.
不幸的是,构建应用程序包括编码。 无论您多么认真地编写/调试程序,都无法想象每种情况都可能出错。 经验不足的用户可能会尝试打开一个不存在的文件或在数据字段中输入错误的值。用户会犯错,因此,我们应该随时随地准备/处理这些错误。
错误,异常? ( Errors, Exceptions? )
An exception is generally an error condition or another event that interrupts the normal flow of execution in an application. Whenever an error results from processing a line of code, Delphi creates (raises) an object descendant from TObject called the exception object.
异常通常是错误条件或其他事件,会中断应用程序中的正常执行流程。 每当处理一行代码而导致错误时,Delphi都会从TObject创建(引发)一个称为异常对象的对象后代。