This question is locked. New answers and comments are not allowed.
I am trying to update secondary tiles of my application usingLiveTileHelper.UpdateTile method. Some of the secondary app tiles are updated but my app gets stuck updating any one of the tile in between with this exception:
OutOfMemoryException was unhandled by user code
on the method: LiveTileHelper.UpdateTile(tile, flipTileData);
What do I need to do to get this working on all secondary tiles?
Thanks
OutOfMemoryException was unhandled by user code
on the method: LiveTileHelper.UpdateTile(tile, flipTileData);
What do I need to do to get this working on all secondary tiles?
Thanks
3 Answers, 1 is accepted
0
Hello Ela,
Thank you for your question.
We are not aware of a similar exception caused by the UpdateTile method. When you update a tile, a new image is created with the details that need to be displayed so if your application is already using a lot of memory and is close to the memory limits, the new image that is created from the tile might be passing the limits. It would be great if you share some more info about the scenario where this occurs and it would be best if you could send us a project that illustrates how this issue occurs. It could help us to easily understand what's the cause and assist you faster.
Regards,
Todor
Telerik
Thank you for your question.
We are not aware of a similar exception caused by the UpdateTile method. When you update a tile, a new image is created with the details that need to be displayed so if your application is already using a lot of memory and is close to the memory limits, the new image that is created from the tile might be passing the limits. It would be great if you share some more info about the scenario where this occurs and it would be best if you could send us a project that illustrates how this issue occurs. It could help us to easily understand what's the cause and assist you faster.
Regards,
Todor
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Tomas
Top achievements
Rank 1
answered on 20 Mar 2014, 05:48 PM
I can confirm the exception, some of my users are reporting that their live tile is not updated correctly - sometimes. From the stacktraces in Dev Center, I can see that is usually crashes around method "SaveTilesData" and somewhere inside XmlSerializer
Frame Image Function Offset
0 mscorlib_ni System.Reflection.Emit.AssemblyBuilder.nCreateDynamicAssembly 0x00000001
1 mscorlib_ni System.Reflection.Emit.AssemblyBuilder..ctor 0x000001a6
2 mscorlib_ni System.Reflection.Emit.AssemblyBuilder.InternalDefineDynamicAssembly 0x0000007c
3 mscorlib_ni System.AppDomain.InternalDefineDynamicAssembly 0x0000002c
4 mscorlib_ni System.AppDomain.DefineDynamicAssembly 0x0000002c
5 system_xml_serialization_ni System.Xml.Serialization.CodeGenerator.CreateAssemblyBuilder 0x00000064
6 system_xml_serialization_ni System.Xml.Serialization.TempAssembly.GenerateRefEmitAssembly 0x000000d4
7 system_xml_serialization_ni System.Xml.Serialization.XmlSerializer.GenerateTempAssembly 0x00000064
8 system_xml_serialization_ni System.Xml.Serialization.XmlSerializer..ctor 0x000000fc
9 system_xml_serialization_ni System.Xml.Serialization.XmlSerializer..ctor 0x00000012
10 telerik_windows_backgroundagenttools_ni Telerik.Windows.Controls.LiveTileHelper.SaveTilesData 0x000000c6
11 telerik_windows_backgroundagenttools_ni Telerik.Windows.Controls.RadFlipTileData.Telerik.Windows.Controls.ITileData.RegisterTile 0x00000446
12 telerik_windows_backgroundagenttools_ni Telerik.Windows.Controls.RadFlipTileData.Telerik.Windows.Controls.ITileData.CreateTileData 0x00000164
13 telerik_windows_backgroundagenttools_ni Telerik.Windows.Controls.LiveTileHelper.UpdateTile 0x0000003e
14 expires_agent_ni Expires.Services.TileService+__c__DisplayClass4._RefreshAllTiles_b__3 0x00000182
Frame Image Function Offset
0 mscorlib_ni System.Reflection.Emit.AssemblyBuilder.nCreateDynamicAssembly 0x00000001
1 mscorlib_ni System.Reflection.Emit.AssemblyBuilder..ctor 0x000001a6
2 mscorlib_ni System.Reflection.Emit.AssemblyBuilder.InternalDefineDynamicAssembly 0x0000007c
3 mscorlib_ni System.AppDomain.InternalDefineDynamicAssembly 0x0000002c
4 mscorlib_ni System.AppDomain.DefineDynamicAssembly 0x0000002c
5 system_xml_serialization_ni System.Xml.Serialization.CodeGenerator.CreateAssemblyBuilder 0x00000064
6 system_xml_serialization_ni System.Xml.Serialization.TempAssembly.GenerateRefEmitAssembly 0x000000d4
7 system_xml_serialization_ni System.Xml.Serialization.XmlSerializer.GenerateTempAssembly 0x00000064
8 system_xml_serialization_ni System.Xml.Serialization.XmlSerializer..ctor 0x000000fc
9 system_xml_serialization_ni System.Xml.Serialization.XmlSerializer..ctor 0x00000012
10 telerik_windows_backgroundagenttools_ni Telerik.Windows.Controls.LiveTileHelper.SaveTilesData 0x000000c6
11 telerik_windows_backgroundagenttools_ni Telerik.Windows.Controls.RadFlipTileData.Telerik.Windows.Controls.ITileData.RegisterTile 0x00000446
12 telerik_windows_backgroundagenttools_ni Telerik.Windows.Controls.RadFlipTileData.Telerik.Windows.Controls.ITileData.CreateTileData 0x00000164
13 telerik_windows_backgroundagenttools_ni Telerik.Windows.Controls.LiveTileHelper.UpdateTile 0x0000003e
14 expires_agent_ni Expires.Services.TileService+__c__DisplayClass4._RefreshAllTiles_b__3 0x00000182
0
Hello Tomas,
I'd like to ask you for a little more details on your scenario. Is your application targeting WP7 or WP8? Also what type of tiles do you use - Standard, Flip, Cycle or Iconic? The last thing that I'd like to ask you to share are the Exception type and the Problem function that are stated in the Dev Center report.
Thank you for your cooperation.
Regards,
Todor
Telerik
I'd like to ask you for a little more details on your scenario. Is your application targeting WP7 or WP8? Also what type of tiles do you use - Standard, Flip, Cycle or Iconic? The last thing that I'd like to ask you to share are the Exception type and the Problem function that are stated in the Dev Center report.
Thank you for your cooperation.
Regards,
Todor
Telerik
Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.