Product Documentation

c-treeDB API for C++

Previous Topic

Next Topic

Done

When an application and/or process has completed operations with the database, it must release resources by closing the open files and disconnecting from the database engine.

Below is the code for Done():

//

// Done()

//

// This function handles the housekeeping of closing, freeing,

// disconnecting and logging out of the database

//

VOID Done(VOID)

{

printf("DONE\n");

// close table

printf("\tClose tables...\n");

try

{

tableCustMast.Close();

tableCustOrdr.Close();

tableOrdrItem.Close();

tableItemMast.Close();

MySession.Logout();

}

catch(CTException E)

{

Handle_Exception(E);

}

}

TOCIndex