The problem with this approach is that, like signaling errors for bad constructor calls, the programmer will have no way of predicting that a given run of his program will crash.
该方法的问题是,和为错误的构造函数调用报告错误一样,程序员将无法预知其程序的某一次运行将崩溃。
The program continues to run, but performance is slow, or it takes too long to determine which of the above is the last message before the crash.
该程序继续运行,但是性能降低了,或者需要花费更多时间来判断崩溃之前哪一条是最后的消息了。
Each new operation had to be balanced by a corresponding delete, or else your program would leak memory, and eventually the memory allocator would fail and your program would crash.
每一个new操作必须有相应的delete操作,否则您的程序就会泄漏内存,最终内存分配器(memory allocator)就会出故障,而您的程序就会崩溃。
Some things they won't tell you, though: which programs from Microsoft or others crash the most; who is at fault, Windows or the program.
有些事情他们是不会告诉你的:微软的哪个软件或哪个公司设计的软件最容易崩溃;问题到底出在谁身上,是Windows还是那个应用程序。
Some types of memory access errors (like using a NULL pointer) cause a program to crash outright.
有些类型的内存访问错误 (比如使用一个NULL指示器) 将会导致一个程序完全崩溃。
If this is the case, this defect is likely to cause a memory corruption or program crash, although some cases might cause an exploitable security hole.
如果属于这种情况,则此缺陷可能导致内存损坏或程序故障,但某些情况可能会导致可利用的安全漏洞。
If this is the case, this defect is likely to cause a memory corruption or program crash, although some cases might cause an exploitable security hole.
如果属于这种情况,则此缺陷可能导致内存损坏或程序故障,但某些情况可能会导致可利用的安全漏洞。
应用推荐