AnsweredAssumed Answered

Memory leak in MapView

Question asked by tveprek on Sep 2, 2015
Latest reply on Sep 4, 2015 by mnielsen-esristaff

Hi,

 

I have WPF application with ArcGIS SDK for.NET version 10.2.6, when I add multiple MapView controls into some container, lets say StackPanel, each map with its own ArcGISTiledMapServiceLayer, and then i remove them, memory they've used never gets collected. After adding more MapViews application crashes even though memory from removed ones should be released.

 

If I run the app and add MapViews without layers in them, this problem doesn't occur, because when I remove them from their container memory gets freed.

 

I attached sample application that simulates this behavior. Just add few maps, then remove them, repeat this step few times and you'll eventually see app crash.

 

Thank you

Attachments

Outcomes