Re: [sqlite] Library routine called out of sequence

2015-02-11 Thread Simon Slavin
On 11 Feb 2015, at 11:19pm, pablo Van wrote: > I have a problem with my delphi's application when I want run it on other > PC. I use ZeosLib in my application > The message is : Library routine called out of sequence What's happening is that SQLite relies on some calls

[sqlite] Library routine called out of sequence

2015-02-11 Thread pablo Van
I have a problem with my delphi's application when I want run it on other PC. I use ZeosLib in my application The message is : Library routine called out of sequence How I can fix it? I need help urgent!!! please Thanks at all ___ sqlite-users mailing

Re: [sqlite] library routine called out of sequence

2012-01-07 Thread Sreekumar
: General Discussion of SQLite Database Subject: Re: [sqlite] library routine called out of sequence Hi Sreekumar, Do you have a db connection shared across threads? This is not advised . Try opening a db connection per thread instead. -- Tito On Dec 23, 2011, at 15:06, Sreekumar TP <sreeku

Re: [sqlite] library routine called out of sequence

2011-12-24 Thread Tito Ciuro
Hi Sreekumar, Do you have a db connection shared across threads? This is not advised . Try opening a db connection per thread instead. -- Tito On Dec 23, 2011, at 15:06, Sreekumar TP wrote: > Hi, > > yes, I know. I have a multithreaded app. One db conection.I will

Re: [sqlite] library routine called out of sequence

2011-12-23 Thread Michael Stephenson
routine called out of sequence Hi, yes, I know. I have a multithreaded app. One db conection.I will try to reproduce the problem with a simple app. However, the difference between the working and non working case is that in the working case statements are prepared each time. In the non working

Re: [sqlite] library routine called out of sequence

2011-12-23 Thread Sreekumar TP
I am 99% certain that it is the very first call. unless the step and reset executed once before.(the bind , step, reset is in a loop). I will double check this. Sreekumar ___ sqlite-users mailing list sqlite-users@sqlite.org

Re: [sqlite] library routine called out of sequence

2011-12-23 Thread Dan Kennedy
On 12/23/2011 09:06 PM, Sreekumar TP wrote: Hi, yes, I know. I have a multithreaded app. One db conection.I will try to reproduce the problem with a simple app. However, the difference between the working and non working case is that in the working case statements are prepared each time. In

Re: [sqlite] library routine called out of sequence

2011-12-23 Thread Pavel Ivanov
On Fri, Dec 23, 2011 at 9:06 AM, Sreekumar TP wrote: > Hi, > > yes, I know. I have a multithreaded app. One db conection.I will try to > reproduce the problem with a simple app. > > However, the difference between the working and non working case is that in > the working

Re: [sqlite] library routine called out of sequence

2011-12-23 Thread Sreekumar TP
Hi, yes, I know. I have a multithreaded app. One db conection.I will try to reproduce the problem with a simple app. However, the difference between the working and non working case is that in the working case statements are prepared each time. In the non working case, its reused. The very

Re: [sqlite] library routine called out of sequence

2011-12-23 Thread Pavel Ivanov
Devil is in the details. What you described in general is okay. But I guess the exact code you have has some problems. To find them we should see the code. An just some first check: do you have a single-threaded application accessing database? Pavel On Fri, Dec 23, 2011 at 3:32 AM, Sreekumar

[sqlite] library routine called out of sequence

2011-12-23 Thread Sreekumar TP
Hi , I have a strange problem. I do the following in sequence - 1. open database 2. set pragmas 3.create table 4. prepare a paremetrised statement ( SELECT ..) 5. bind values to the statement 6. step At 5, I get the error "library routine called out of sequence". If I replace the

Re: [sqlite] "Library routine called out of sequence" and user-defined aggregates

2007-07-18 Thread drh
<[EMAIL PROTECTED]> wrote: > John Stanton wrote: > > > Have you checked to ensure that you database handle is correct? > > Your function inherits it as user data, but is it corrupted? > > The db handle is passed correctly. > > I'm starting to suspect that this is a bug of sqlite. It is not a

Re: [sqlite] "Library routine called out of sequence" and user-defined aggregates

2007-07-18 Thread ggeeoo
John Stanton wrote: > Have you checked to ensure that you database handle is correct? > Your function inherits it as user data, but is it corrupted? The db handle is passed correctly. I'm starting to suspect that this is a bug of sqlite. Even a simple "select 0" fails inside an aggregate.

Re: [sqlite] "Library routine called out of sequence" and user-defined aggregates

2007-07-18 Thread John Stanton
Have you checked to ensure that you database handle is correct? Your function inherits it as user data, but is it corrupted? [EMAIL PROTECTED] wrote: I'm getting "Library routine called out of sequence" when I try to execute an insertion inside an aggregate that I have created myself.

[sqlite] "Library routine called out of sequence" and user-defined aggregates

2007-07-17 Thread ggeeoo
I'm getting "Library routine called out of sequence" when I try to execute an insertion inside an aggregate that I have created myself. Here's a sample c program: #include #include void MyAggregateFuncStep(sqlite3_context* context,int argc,sqlite3_value** argv) { // Do nothing } void

Re: [sqlite] library routine called out of sequence

2006-05-12 Thread John Stanton
My answer wasn't complete. If you populate a database using sqlite3 and exit sqlite3 the DB is closed. To access it from a C program you have to first open it with sqlite3_open. Sqlite is not an SQL server but instead a library which is linked into every application. Think of it just as a

Re: [sqlite] library routine called out of sequence

2006-05-12 Thread John Stanton
The sqlite3 program automatically opens the database and holds it open. It will create one if it is missing. The DB stays open until you exit Sqlite3. JS Davide Berti wrote: execute sqlite3 test.db < myscript from a bash shell. myscript creates a few tables. After running this, is my

Re: [sqlite] library routine called out of sequence

2006-05-12 Thread Davide Berti
execute sqlite3 test.db < myscript from a bash shell. myscript creates a few tables. After running this, is my test.db in an open state, do I have to open test.db in my c program via sqlite3_open("test.db", _handle); John Stanton <[EMAIL PROTECTED]> wrote: Davide Berti wrote: > my typo here

Re: [sqlite] library routine called out of sequence

2006-05-12 Thread John Stanton
Davide Berti wrote: my typo here was the sqlite3_open call to open the database that is returning the error John Stanton <[EMAIL PROTECTED]> wrote: Davide Berti wrote: I am getting this error and have viewed the archives but am still at a loss. Can I load a script file that creates a view

Re: [sqlite] library routine called out of sequence

2006-05-12 Thread Davide Berti
my typo here was the sqlite3_open call to open the database that is returning the error John Stanton <[EMAIL PROTECTED]> wrote: Davide Berti wrote: > I am getting this error and have viewed the archives but am still at a loss. > > Can I load a script file that creates a view tables: > >

Re: [sqlite] library routine called out of sequence

2006-05-12 Thread John Stanton
Davide Berti wrote: I am getting this error and have viewed the archives but am still at a loss. Can I load a script file that creates a view tables: sqlite3 test.db < myscript then from a c program sd_open("test.db", db_handle); It keeps giving me the library routine error. My program is

[sqlite] library routine called out of sequence

2006-05-12 Thread Davide Berti
I am getting this error and have viewed the archives but am still at a loss. Can I load a script file that creates a view tables: sqlite3 test.db < myscript then from a c program sd_open("test.db", db_handle); It keeps giving me the library routine error. My program is not multi-threaded and

[sqlite] library routine called out of sequence

2005-04-18 Thread Glenn Martin
Im getting this error off of the version 3 of the library. Im creating a program to take the data out of MySQL and place it, in a parsed for into a SQLite 3 database. I havent been able to track this down but the error only happens when i create a MySQL connection. Never at any other point.

Re: [sqlite] Library routine called out of sequence

2004-10-22 Thread D. Richard Hipp
Guillaume Fougnies wrote: You are probably working in a threaded environment and a sqlite* is shared by at least two threads. Even more common than that is calling sqlite3_step() after a prior call to sqlite3_finalize(). Basically, you are misusing the API. Instead of just segfaulting, SQLite was

Re: [sqlite] Library routine called out of sequence

2004-10-22 Thread Guillaume Fougnies
You are probably working in a threaded environment and a sqlite* is shared by at least two threads. bye. Fri, Oct 22, 2004 at 10:44:22AM +0200: P. Morandi wrote: > Hi everybody. > Does anybody know the main causes of error 'Library routine called out of sequence' > after a sqlite_exec()

[sqlite] Library routine called out of sequence

2004-10-22 Thread P. Morandi
Hi everybody. Does anybody know the main causes of error 'Library routine called out of sequence' after a sqlite_exec() calling? Thank you. P. Morandi

[sqlite] library routine called out of sequence

2004-10-20 Thread P. Morandi
Good morning. I just subscribed to the list. I've been using Sqlite for an year without problems, but recently I have to face up quite often with the error "library routine called out of sequence" and it seems I can't solve it definitely. I'll explain better: I'm programming under Linux (I'm