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

SAP Sybase SQL Anywhere 16.0 » UltraLite - C and C++ Programming » Application development » UltraLite C++ application development

 

Closing the UltraLite database connection

Release software resources when they are no longer being used to prevent the UltraLite database file from remaining in use for as long as the application has a connection to the database.

Prérequis

There are no prerequisites for this task.

 Task
  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.

    ULDatabaseManager.Fini();

Résultat

The database connection is closed and resources are released.

 See also