使用CSScript.Evaluator.Reset()时,这会重置当前正在使用同一脚本或内部版本的其他任何人吗?
问我问题的另一种方式。
脚本= CSScript.Evaluator.LoadCode(scriptString);
如果另一个用户通过并调用了相同的代码,但是发生了错误。
原始编译文件仍然是安全的吗?
另外CSScript.Evaluator.AutoResetEvaluatorOnError = true,这似乎不起作用。
在代码中导致错误后,请修复它。在重置我的应用程序或使用Reset()之前,编译将无法进行。
使用Reset可以正常工作,但这就是我最初提出问题的原因。
我正在使用CSScript.Evaluator.LoadCode并查看CSScript.Evaluator.LoadMethod,但是遇到了相同的问题。
这些不是很大的脚本,但是可以成批运行或循环运行。
不反对唯一的命名,因为无论如何我将为每次运行都构建。
但是我也不确定缓存是否正常工作。
启用CSScript.CacheEnabled时,缓存文件夹的位置在哪里?
最佳答案
Would the original compile still be good and safe?
Also CSScript.Evaluator.AutoResetEvaluatorOnError = true, this does not seem to be working.
Where is the location of the cache folder, when CSScript.CacheEnabled is enabled?
https://stackoverflow.com/questions/28113432/
相关文章:
actionscript-3 - 如果使用 Flash Builder 4.7 而不是 4.6,则基
compilation - 如何在Windows上的SCons中导出具有备用扩展名的程序
macos - AudioFileReadPackets错误-50
compiler-errors - 如何解决MiniZinc错误: “model inconsist
compiler-errors - Lazarus IDE-编译失败: Cannot open in
compiler-errors - gfortran在编译文件上不输出ident工具