Solved! Go to Solution.
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Esri.FileGDB; using System.IO; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { //1.2.0.136 Geodatabase.Create("a.gdb"); Geodatabase geodatabase = Geodatabase.Open("a.gdb"); string template = File.ReadAllText("../../template.xml"); string tableDef = template.Replace("%Name%", "myTable").Replace("%ShapeType%", "esriGeometryPoint"); Table table = geodatabase.CreateTable(tableDef); string fieldTemplate = File.ReadAllText("../../fieldTemplate.xml"); table.AddField(fieldTemplate.Replace("%Name%", "pointField")); table.Close(); //stop here geodatabase.Close(); } } }
var b = Geodatabase.Open("a.gdb"); var a = Geodatabase.Open("a.gdb"); //stops here a.Close(); b.Close();
var b = Geodatabase.Open("a.gdb"); var a = Geodatabase.Open("a.gdb"); //works fine. b.Close(); a.Close();