Forgot to say that the error occurs at the sqlite3_close   function.

John

On Feb 23, 11:17 am, John <mail_ch...@yahoo.fr> wrote:
> Hi All,
>
> The very simple C-code below returns error message " library routine
> called out of sequence" .
> I really don't understand why  ?
>
> I'm using SQLite 3.6.22 under Windows XP
>
> Any idea/suggestion would be really appreciated !
>
> -------------------------------------------------------------------------------------
>  sqlite3        *db;
>  sqlite3_stmt   *statement;
>  wxString        TMPstring;
>
>   if( sqlite3_open( "Test3.db", &db) )
>   {     TMPstring << "Failed opening databse file:\n" <<
> sqlite3_errmsg(db);
>         wxMessageBox( TMPstring );
>         sqlite3_close(db);
>         return;
>   }
>
>     if( sqlite3_close( db ) != SQLITE_OK );
>         {   wxMessageBox( wxString("Database can not be closed
> properly !\n\n")   << sqlite3_errmsg( db )    );
>             return( -1 );
>         }
>
> -----------------------------------------------------------------
>
> Thanx for your help,
>
> John
>
> _______________________________________________
> sqlite-users mailing list
> sqlite-us...@sqlite.orghttp://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to