Projects > cpp > Issues > Bug #3269

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

[3.0alpha1] crash when evalString()

Bug #3269 [Closed]
slipper 2013-11-25 02:59 . Updated over 10 years ago
// in AppDelegate::applicationDidFinishLaunching()
#ifdef DEV
    ScriptingCore::getInstance()->runScript("gamedev.js");
#else
    ScriptingCore::getInstance()->runScript("game.js");
#endif // DEV

    jsval var;
    ScriptingCore::getInstance()->evalString("cc.log('work?')", &var); // Crash**********

the callstack is diffent every time.

walzer@cocos2d-x.org 2014-10-08 02:47

Redmine issue system is closed, we are using github issue system instead.

This issue was moved to https://github.com/cocos2d/cocos2d-x/issues/8265

Atom PDF

Status:Closed
Start date:2013-11-25
Priority:Low
Due date:
Assignee:-
% Done:

0%

Category:js
Target version:-