加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

Cocos2d-x Expression: child != nullptr

发布时间:2020-12-14 16:30:53 所属栏目:百科 来源:网络整理
导读:昨天在做小demo的时候无意间除了这个问题: Microsoft Visual C++ Runtime Library Assertion failed! Program: …ameNodeTestproj.win32Debug.win32libcocos2d.dll File: CCNode.cpp Line: 1107 Expression: child != nullptr For information on how y

昨天在做小demo的时候无意间除了这个问题:

Microsoft Visual C++ Runtime Library

Assertion failed!

Program: …ameNodeTestproj.win32Debug.win32libcocos2d.dll
File: CCNode.cpp
Line: 1107

Expression: child != nullptr

For information on how your program can cause an assertion
failure,see the Visual C++ documentation on asserts

(Press Retry to debug the application - JIT must be enabled)

中止(A) 重试(R) 忽略(I)

检查自己的代码发现原来是在创建精灵的时候没有给入图片而导致的,在VS2013的环境中resource好像没用一样,必须从资源管理器打开我们的项目的Resource文件,然后在里面添加图片。


再有好玩的是,vs2013提示变量重命名竟然是说error C2040: “bgSprite”:“auto”与“cocos2d::Sprite *”的间接寻址级别不同…… 学cocos还真是天雷滚滚呀

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读