Hi Simon, Thanx for your answer,
IN case of error when trying to open the file, we close db pointer and exit the sub-routine ( return keyword follows closing ). So 'sqlite3_close' can't be called twice. Sincerely, John On Feb 23, 2:40 pm, Simon Davies <[email protected]> wrote: > On 23 February 2010 12:51, John <[email protected]> wrote:> Forgot to say > that the error occurs at the sqlite3_close function. > > > John > > >> 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 ! > > . > . > . > > >> Thanx for your help, > > >> John > > There are 2 calls to sqlite3_close in your code snippet. If the error > occurs on the first, then the open has failed, and the error on close > is probably the expected result. > > Regards, > Simon > _______________________________________________ > sqlite-users mailing list > [email protected]http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users _______________________________________________ sqlite-users mailing list [email protected] http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

