This is a migrated thread and some comments may be shown as answers.

RadFlipTileData.CreateTileData uses a lot of memory

1 Answer 23 Views
LiveTileHelper
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Bernhard
Top achievements
Rank 1
Bernhard asked on 01 Oct 2013, 03:47 AM
Hey there,

In my background agent I'm updating the front of a WP7.8 FlipTile, i.e. I'm preparing three controls (SmallVisualElement, VisualElement & WideVisualElement) for the front of the tile and I'm passing the data to the UpdateTile method of the LiveTileHelper.

However, since the update routine is quite complex and already takes a lot of memory, it fails due to the memory constraints of the background agent (whereas it work perfectly within the limits when using WP7.1, which requires only one control per tile).

As a workaround I'm storing the control in a static field and render it one by another in different sizes, so that at any time only one control has to be loaded in memory. Since RadFlipTileData.CreateTileData() is calling LiveTileHelper.SaveImageFromVisual(), I made the latter method public and call it consecutively from my code.

So, my suggestion would be to make LiveTileHelper.SaveImageFromVisual() public in case you don't have a better solution ;)

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 02 Oct 2013, 12:08 PM
Hi Bernhard,

Thank you for writing.

We are going to need more time to research our options here and will get back to you when we have more information.

Regards,
Todor
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINDOWS PHONE 7.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
LiveTileHelper
Asked by
Bernhard
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or