On 23 February 2010 17:44, newlog <newlog2...@yahoo.fr> wrote: > OK, > > 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 " > > > I have to say that the statement sqlite3_open works fine because I > have no error on opening and I can successfully write/retrieve data in > the Test3.db database file. > > > I really don't understand.... >
Rogue semicolon on line > if( sqlite3_close( db ) != SQLITE_OK ); Regards, Simon _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users