Closed daihuynh closed 10 years ago
You will need to post your code for us to comment. All of the tests work and all of our games work, so something in the way you are adding the node is causing the problem.
I read through your exception trace again, and I think you are doing this:
CCMenuItemSprite m = new CCMenuItemSprite(sprite1, sprite1);
This won't work. You can't use the same sprite object for more than one menu state.
reopen if this problem happens again and you have more information to share.
Target: Windows Phone 8 Issue:
When i clicked on it, all instance of CCControlButton disappear except Background and log some error messages "---- DEBUG ASSERTION FAILED ---- ---- Assert Short Message ---- child already added. It can't be added again ---- Assert Long Message ----
at CCNode.AddChild(CCNode child, Int32 zOrder, Int32 tag)b 1(Object e)
at CCNode.AddChild(CCNode child)
at <>cDisplayClassb.
at CCMenuItem.Activate()
at CCMenuItemSprite.Activate()
at CCMenu.TouchEnded(CCTouch touch)
at CCTouchDispatcher.Touches(List
1 pTouches, Int32 uIndex) at CCTouchDispatcher.TouchesEnded(List
1 touches)at CCApplication.ProcessTouch()
at CCApplication.Update(GameTime gameTime)
at Game.<.cctor>b__19(IUpdateable updateable, GameTime gameTime)
at SortingFilteringCollection
1.ForEachFilteredItem(Action
2 action, TUserData userData)at Game.Update(GameTime gameTime)
at iWinOnlineGame.Update(GameTime gameTime)
at Game.DoUpdate(GameTime gameTime)
at Game.Tick()
at SurfaceUpdateHandler.Draw(Device device, DeviceContext context, RenderTargetView renderTargetView)
at DrawingSurfaceContentProvider.GetTexture(Size2F surfaceSize, DrawingSurfaceSynchronizedTexture& synchronizedTexture, RectangleF& textureSubRectangle)
at DrawingSurfaceContentProviderVtbl.GetTexture(IntPtr thisPtr, IntPtr surfaceSize, IntPtr synchronizedTexture, IntPtr textureSubRectangle)
"