运行时错误:程序在“运行过程中”发生的错误(不是在编译阶段就发现的),常会导致程序异常终止、崩溃或输出不正确。常见原因包括除以零、数组越界、空指针/空引用、内存访问非法、类型错误等。
/ˈrʌnˌtaɪm ˈerər/
A runtime error stopped the program before it could save the file.
运行时错误在程序保存文件之前就使它停止了。
After the update, the app sometimes throws a runtime error when it opens large images, which makes debugging difficult.
更新后,这个应用在打开大图时有时会抛出运行时错误,这让调试变得很困难。
runtime 来自 run(运行)+ time(时间),指程序“正在执行的阶段”;error 源自拉丁语 error,意为“偏离、错误”。合起来的 runtime error 指“在执行阶段出现的错误”。