AnsweredAssumed Answered

Store app crashes on layer remove

Question asked by sthambir on Mar 31, 2015
Latest reply on Apr 2, 2015 by sthambir

Hi,

 

I'm trying to load some basemap tiles (as individual LocalTiledLayer) based on the current map extent and whist doing that also trying to remove tiles (LocalTiledLayer) which were previously loaded but not in the current map extent.

 

An unhandled exception as shown in Capture1.png is thrown at the MapView.Map.Layers.Remove line. Further digging in Visual Studio watch, looks like the layer itself is not null but none of its properties are accessible (as shown in Capture2.png) which could be the reason for this exception. I could be completely wrong though.  This behaviour is quite random as well and can't be reproduced consistently.

 

Any one had this experience? Any input is much appreciated.

 

Thanks.

Attachments

Outcomes