PhantomJs.exe throwing “terminate called after throwing an instance of 'std::bad_alloc' ” error on Windows 2008 R2

StackOverflow https://stackoverflow.com//questions/9582019

  •  08-12-2019
  •  | 
  •  

سؤال

I trying to run my jamsine specs from command line using PhantomJs.exe. Here is my command line

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

I'm running this from the folder where my spec runner html file is located. The above command throws following error

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.

I have already looked at http://code.google.com/p/phantomjs/issues/detail?id=365 on phantomjs group but that does not help much for someone like me who comes from a .net background.

So far I have found out that version 1.3.0 of PhantomJs works fine for me.

هل كانت مفيدة؟

المحلول

Take a look at this url on stackoverflow.

This is a typicall situation that takes place when a conflict of instances of C Runtime (CRT) libraries is detected! One app ist bound statically to the CRT and at the same time the app tries to dynamically bind to CRT.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top