简体   繁体   中英

What does misaligned_stack_error_ mean?

I have some crashes with misaligned_stack_error_ after migration to new cocos2d-iphone version(3.1). One harmless line crashes my code: ccColor3B colorPH = [[self node].color ccColor3b]; What can be reason of this crash? What does misaligned_stack_error_ mean?

I've found the reason. As I've already said I migrated to new cocos2d version. In my old code I had a method in category for CCNode. It returns structure:

-(ccColor3B)color
{
    return (ccColor3B){255,255,255};
}

But it the new cocos2d version developers added new property in CCNode that calls color too but returns object(CCColor*). Thanks!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM