Thank you very much for your help. Richard was correct in that it was a
memory error earlier.

/Fredrik

2016-02-04 16:53 GMT+01:00 Simon Slavin <slavins at bigfraud.org>:

>
> On 3 Feb 2016, at 4:21pm, Fredrik Gustafsson <iveqy at iveqy.com> wrote:
>
> > 223         rc = sqlite3_exec(db, "SELECT id, date, text FROM events
> WHERE account_id=1 ORDER BY date DESC LIMIT 10" , NULL, NULL, &zErrMsg);
>
> To help debug this, insert two lines before this one.
>
> One checks to see that $zErrMsg is a real pointer, and points to a place
> that your program can reach.  It could be as simple as trying to write the
> byte at that location.
>
> If that doesn't trigger a problem, try this one:
>
> Take the SQL command you're executing but hands it to sqlite3_prepare()
> instead of sqlite3_exec().  This may give you an error status, or a
> different crash which is easier to debug.
>
> Simon.
> _______________________________________________
> sqlite-users mailing list
> sqlite-users at mailinglists.sqlite.org
> http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
>

Reply via email to