2012-03-06 76 views
0

我试图运行命令行使用PhantomJs.exe我jamsine规格“终止扔‘的std :: bad_alloc的’的一个实例后调用”。这里是我的命令行PhantomJs.exe抛在Windows 2008 R2错误

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

我从我的spec runner 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. 

我已经看过http://code.google.com/p/phantomjs/issues/detail?id=365上phantomjs组但没有太大的帮助对于像我这样谁来自一个.NET的背景。

到目前为止,我还发现,PhantomJs的版本1.3.0工作正常,我。

+0

不是PhantomJS发挥作用,但std :: bad_alloc通常是由内存不足导致的。 – IUnknown 2012-03-06 10:52:26

+0

我同意。但是我只用phantomjs.exe看到了这一点,并且每次都使用Phantomjs.exe – Suhas 2012-03-06 11:00:14

回答

1

看看this url on stackoverflow

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

+0

现在我明白了。但是,我应该如何解决这个问题? – Suhas 2012-03-06 10:59:23

+0

...联系建立位的应用程序,该应用程序阻止系统! :-( – mox 2012-03-06 11:45:41

+0

...并将此问题标记为回答?:-) – mox 2012-03-06 11:47:49

相关问题