On 23 Feb 2010, at 5:44pm, newlog wrote:

> With the following code :
> 
> -------------------------------------------------
> 
> sqlite3        *db = NULL;
> 
>  if( sqlite3_open( "D:\Test3.db", &db) != SQLITE_OK )
>       {
>        // Exit if error while opening.
>        wxMessageBox( wxString( "Error while opening :\n") <<
> sqlite3_errmsg(db)  );
>        sqlite3_close(db);
>        return;
>      }
> 
> 
>  if( sqlite3_close( db ) != SQLITE_OK );
>        {
>          // Exit if error on closing.
>          wxMessageBox( wxString("Error while closing : \n")   <<
> sqlite3_errmsg( db )    );
>          return;
>        }
> 
> 
> __________________________
> 
> 
> A Message windo prompts : " Error while closing : library routine
> called out of sequence "

Change the two error messages so the first one has a '1' in it and the second 
one has a '2' in it.  Then run it again and tell us which of the two error 
messages is being shown.

Simon.
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to