Quantcast
Viewing all articles
Browse latest Browse all 2341

New Post: Exception when using Shapefile.Table.Query()

More Information on this issue:

so now I have 2 projects using the same MapWinGIS components.

I have been transferring code blocks between the 2, from the old project to the new project, and re-testing each time to see which code blocks might be causing this exception to be thrown. As I test, I am monitoring (Via Task Manager) the amount of memory being used.

The 9 shapefiles that I am using comprise about 2GB (including .mwd and .mwx index files) on disk.

When I include the largest of the shapefiles (850000 features) the map loads OK. I can Pan and Zoom with performance looking ok. But when the call to Table.Query() method runs (on a different layer), the memeory working set ramps up to about 1.8 GB and then the SEHException is thrown, followed by an OutOfMemoryException.

So, I am wondering if there is a better strategy for loading all of these shapefiles and being able to query one of them using the Shapefile.Table.Query() method.


TIA

Viewing all articles
Browse latest Browse all 2341

Trending Articles