2012-03-06 28 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

相關問題