public void Commit() { int ret = txnfuncs.commit(Txn, 0); txnfuncs.commit = null; Txn = IntPtr.Zero; CheckError(ret); }