[WP8-XAML] - memory leak and distorted CCrenderTexture sprites/textures when returning from background

Hi,

Since this is my first post I would like to thank you for your great work. Keep it up :wink:

I have tried the WP8 XAML version (v 2.2.2. release) and it works great. There are two problems I have noticed.

  1. There seems to be a memory leak when application goes to background i.e. the home button is pressed. On a simulator memory consuption increases for about 2MB and on a device (Nokia Lumia 520, Nokia Lumia 920) for about 4MB.

  2. After returning from background sprites/textures created with CCRenderTexture become distorted and if I have two or more such sprites/textures on a screen sometimes one sprite/texture is replaced with other sprite/texture.

Does anyone have any idea how to fix these problems, at least the memory leak :slight_smile:

Best regards,
Ivan

It looks like the problem is in DrawingSurface XAML control…

https://github.com/MSOpenTech/cocos2d-x/issues/35#issuecomment-34867476

I am facing the same problem in WP8-XAML 2.2.3 Version.
Guys I am kind of stuck due to this issue.
Kindly provide some update for this issue.
Thanks.

Hi waqasanwar,please try develop base on https://github.com/MSOpenTech/cocos2d-x/tree/wp8-v2-nuget and apply changes from https://github.com/cocos2d/cocos2d-x/pull/6964.