0

PhantomJs.exe を使用して、コマンド ラインから Jamsine 仕様を実行しようとしています。ここに私のコマンドラインがあります

'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.

phantomjs グループのhttp://code.google.com/p/phantomjs/issues/detail?id=365を既に確認しましたが、.net のバックグラウンドを持つ私のような人にとってはあまり役に立ちません。

これまでのところ、PhantomJs のバージョン 1.3.0 が問題なく動作することがわかりました。

4

1 に答える 1

1

stackoverflowでこのURLを見てください。

これは、Cランタイム(CRT)ライブラリのインスタンスの競合が検出されたときに発生する典型的な状況です。1つのアプリが静的にCRTにバインドされると同時に、アプリが動的にCRTにバインドしようとします。

于 2012-03-06T10:51:04.157 に答える