0

我尝试使用 PhantomJs.exe 从命令行运行我的 jamsine 规范。这是我的命令行

'path\to\phantomjs\phantomjs.exe run-jasmine.js SpecRunner.html

我从我的规范运行器 html 文件所在的文件夹中运行它。上面的命令抛出以下错误

terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc

This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.

我已经查看了 phantomjs 组上的http://code.google.com/p/phantomjs/issues/detail?id=365但这对像我这样来自 .net 背景的人没有多大帮助。

到目前为止,我发现 PhantomJs 的 1.3.0 版对我来说很好用。

4

1 回答 1

1

在 stackoverflow 上查看这个 url

这是检测到 C 运行时 (CRT) 库的实例冲突时发生的典型情况!一个应用程序静态绑定到 CRT,同时该应用程序尝试动态绑定到 CRT。

于 2012-03-06T10:51:04.157 回答