Removed sprite still seems to exist

I use removeFromParentAndCleanup function to remove sprite but cocos2dx is still catch the collision of it with other sprite. I seen to have the same issue with this guy in this topic http://stackoverflow.com/questions/18311701/removed-sprite-still-seems-to-exist-cocos2d
But finally I don’t know how to fix it in cocos2dx.

Are you by any chance calling setParent and changing the parent of the sprite before calling removeFromParentAndCleanup? That would certainly cause the behavior you are describing.

The parent of the sprite is a batch node. I just created a batch node and adding to the layer, then I added the sprite to the batch node. I seem I didn’t set any thing on the batch node.