Cannot open shapefile more than once

Topics: General Topics
Mar 19, 2007 at 1:23 AM
Hi everyone,

I don't know why I can't open shapefile more than once even if I close the application then run it again when I try to open it an EndOfStreamException is raised. Here's the code:

SharpMap.Data.Providers.ShapeFile shapefile = new SharpMap.Data.Providers.ShapeFile(pathToFile, true);
shapefile.Open();
// Do something here
shapefile.Close();

Please help. Thanks.
Coordinator
Mar 28, 2007 at 12:07 AM
What version are you running?