This project is read-only.

Out of Memory Exception whenever reloading a large shapefile.

Apr 24, 2015 at 10:39 PM
Edited Apr 24, 2015 at 10:49 PM
My application tries to load a polygon shapefile which has about 200k polygons as a layer on a map. it loads the shapefile just fine for the first time.
While my application is still running, I clear the map by using Map.ClearLayers() method then reloading the same shapefile again. This time the application causes Out of Memory Exception.
I watched the Memory Usage of my application, I saw a big memory drop after I cleared all the layers in the map. However, for some reasons, the map still think it doesn't have enough memory to load the shapefile again even though it does.
I'm not sure if this is a bug from DotSpatial. Any suggestions would be very appreciated. Thanks.
Apr 25, 2015 at 3:59 PM
Could you upload a sample project for us to look where your error comes from?