public void CreateDatabase(DatabaseParameterBuffer dpb, string dataSource, int port, string database) { lock (this) { int[] statusVector = FesConnection.GetNewStatusVector(); int dbHandle = this.Handle; FbClient.isc_create_database( statusVector, (short)database.Length, database, ref dbHandle, (short)dpb.Length, dpb.ToArray(), 0); this.ParseStatusVector(statusVector); this.handle = dbHandle; this.Detach(); } }