Quantcast
Channel: GMap.NET - Great Maps for Windows Forms & Presentation
Viewing all articles
Browse latest Browse all 3384

New Post: GMapPolygon, GMapRoute: Fill Brush, Stroke Pen are Disposed

$
0
0
Hi JP!

I like your solution because it would still allow an application to use its own brushes/pens, or allows the application to directly modify GMap's clones. So the degree of lightweightedness, while probably only important to mobile, is still entirely up to the implementing application.

Your solution works for me so long as we let Garbage Collection take care of the clean-up (i.e. GMap does not ever explicitly dispose the pens/brushes).


Perhaps radioman will chime in here...

Viewing all articles
Browse latest Browse all 3384


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>