Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 12.0.1 » UltraLite - C and C++ Programming » Application development » UltraLite C++ application development


Closing the UltraLite database connection

It is important to release resources when they are no longer being used; otherwise, an UltraLite database file remains in use as long as an application has a connection to the database.

 Close an UltraLite database connection
  1. Call the Close method to release resources.

    Use the following code when the application no longer requires a connection to the database:

    if( conn != NULL ) {
        conn->Close( &ulerr );
  2. Call the Fini method to finalize the ULDatabaseManager object.

    Use the following code when closing the application.

 See also