After a successful open table, and if the table object is no longer needed, the table should be closed to allow all c-treeDB .NET, c-tree Plus and operating systems buffers to be flushed to disk. It is very good programming practice to always close every open table before the process or thread is terminated.
// close the table
try
{
ATable.Close();
}
catch (CTException err)
{
Console.Write("Close table failed with error {0}\n", err.GetErrorCode());
}