This project has moved and is read-only. For the latest updates, please go here.

"System.OutOfMemoryException" in SharpMap.dll

Topics: Data Access, SharpMap v0.9 / v1.x
May 23, 2014 at 9:40 AM
Edited May 23, 2014 at 9:40 AM
is there a featurelimit for displaying Features in a map with sharpmap?
I have a shapefile with more than 2 millions of features.
I added this to mapbox an ZoomToExtents.

I get an error.
"Eine Ausnahme (erste Chance) des Typs "System.OutOfMemoryException" ist in SharpMap.dll aufgetreten."

May 23, 2014 at 10:45 AM
Are you using a theme? In that case all attribute data is loaded into a FeatureDataTable (in memory) and that might cause this error.
Could you post the full stack trace?
May 23, 2014 at 12:19 PM
no theme used.

How big is the memorylimit ?
May 23, 2014 at 12:57 PM
That depends on your machine. Do you have the UseMemoryCache property set to true?
May 23, 2014 at 1:09 PM
no difference if UseMemoryCache is set to true or false.
in both case System.OutOfMemoryException
May 23, 2014 at 2:29 PM
Then the shapefile is too big. An approach like in AsyncTileLayer could help. Again, I'm working on a proof of concept.