Select to view content in your preferred language

Garbage Collection

904
2
06-08-2011 03:32 AM
JH2
by
Emerging Contributor
I've just been doing some checking on my solution for references that might be preventing GC (using ANTS Memory Profiler)

One of the things that I've noticed is that once my map view (containing a Esri.ArcGIS.Client.Map object) is removed from the visual tree, the map layer (either ArcGISTiledMapServiceLayer or Bing.TileLayer) is still listening to the System.Net.NetworkInformation.NetworkAvailabilityChangedEvent which, as a result holds a strong reference to the map layer.

Has anyone else seen behaviour like this?  Am I perhaps not handling the Map object correctly or misinterpreting the Profiler results?

0 Kudos
2 Replies
dotMorten_esri
Esri Notable Contributor
This looks like a genuine issue in WPF. I've submitted a bug for it.
0 Kudos
JH2
by
Emerging Contributor
Thanks Morten
0 Kudos