none
Memory leak when drawing MapPolygons RRS feed

  • Question

  • I have a very simple Map App (feel free to clone this git repository: https://github.com/hapdisney/Win81BingMap.git)

    The map has one MapShapeLayer.  For demonstration purposes, I clear the shape layer and redraw the MapPolygons every 20 seconds.  Initially, I tried using MapShapeLayer.Shapes.Clear() but the memory was never released.  I also tried using a collection of MapPolygons and iterating through them and calling MapShapeLayer.Shapes.Remove(polygon) but the memory is never released.  I am not using any event handlers.  Is this an obvious memory leak?  What is the correct way to remove MapShapes to free up memory?

    Memory usage climbs

    Friday, July 31, 2015 7:01 PM

Answers

  • This is a known issue in the Windows 8.1 map control. Note that this control is replaced in Windows 10.

    http://rbrundritt.wordpress.com

    Wednesday, October 21, 2015 12:08 AM