ThinkGeo.com    |     Documentation    |     Premium Support

GeoDbf - Open create Error

Hallo,
when I try to open a specific GeoDbf file, the following error occurs (Stack trace):

   bei System.IO.FileSystem.CopyFile(String sourceFullPath, String destFullPath, Boolean overwrite)
   bei ThinkGeo.Core.GeoDbf.cB4=(String currentFileName)
   bei ThinkGeo.Core.GeoDbf.bx4=(String fileName, FileAccess access)
   bei ThinkGeo.Core.GeoDbf.Open()

the code ist very simple

GeoDbf dbf = new GeoDbf()
{
    PathFilename = Path.Combine(Path.GetDirectoryName(this.ShapefilePathfilename), Path.GetFileNameWithoutExtension(this.ShapefilePathfilename)) + ".dbf"
};
if (null != this.SelectedEncoding)
{
    Encoding encoding = Encoding.GetEncoding(this.SelectedEncoding.TheWebName); 
    dbf.Encoding = encoding;
}
dbf.Open();

"The process cannot access the file 'C:\\Users\\jobst\\AppData\\Local\\Temp\\002_Rechercheplanung Vopelius Puffer 500m.dbt' because it is being used by another process."

Any suggestions?
Regards Torsten

Hi Torsten,

Any chance you can send the dbf file (and .dbt) to us? You can post it here or send it to support@thinkgeo.com.

Just FYI, .dbt is required if the dbf file has a memo field. Check out here for detail: Xbase: Memo Field Files (*.dbt) (manmrk.net). The file will be created when you add a memo field to dbf using ThinkGeo API.

Thanks,
Ben

Hallo Ben,
thanks for your quick answer. Attached is the shapefille.

Regards Torsten

002_Rechercheplanung Vopelius Puffer 500m.zip (4.0 KB)

Hi Torsten,

It works fine with the latest version as following:

Which version are you using? Can you upgrade to the latest version and have another try?

Thanks,
Ben