Cocos2d-x: Pass Parameters Between Scenes

if I placed this code


then it worked fine

but if added TransitionFade in code


then it return error

I can ask engineering for a better answer, but my wonder is because when transitioning the scene isn’t immediately replaced?

The error message has given the answer, you need to check the engine code, it may be the following case: