0

我有一个 cocos2d Mac 应用程序。创建和添加 Sprite 时出现随机崩溃。

基本上我得到了 SIGABRT

// flush buffer
[self.view.openGLContext flushBuffer];

在 CCDirectorMac 中。

截图在这里: http ://www.zentralnorden.com/temp/crash0220.png

关于如何解决这个问题的任何建议都是有帮助的。

4

1 回答 1

1

The reason was..

I am building a Level-Editor and the Sprites were created in a different Thread as the CCDirectorMac runs on. I now add notifications into a queue and then on the CCLayer i check if somethings is in this queue and if yes, create the needed Sprites from there. Since i do this i have no more problems.

于 2013-02-20T16:03:27.550 回答