...用了不合的堆(Heap)经管器,因而当Debug版本的客户法度开释Release版本DLL申请的内存时,会导致运行时错误(Runtime failure)。有一种办法可以解决这个题目,就是DLL同时供给申请和开释内存的函数供客户法度调用;DLL中也包管不开释客户法度申请的内容。
基于12个网页-相关网页
如果代码给方法传递错误的元素,那么尽管代码将编绎良好,但可能会导致运行时错误或者不返回任何结果。
If your code passes the wrong element to the method, the code compiles fine, but might raise a runtime error or silently return no results.
这种方法的缺点在于签名录入的错误或含糊不清可能会导致没有征兆的故障,这也就意味着代码可以编译,但在运行时无法正确完成操作。
The downside of this approach is the possibility that a typo or slight ambiguity in the signature will silently fail, which means the code will compile but "do the wrong thing" at runtime.
任何无效迭代器的使用都可能导致运行时错误,但程序不一定会崩溃,否则检查这种错误也许会容易些。
Any use of an invalidated iterator is likely to yield a run-time error, but there is no guarantee that the program will crash or otherwise make it easy to detect the problem.
应用推荐