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.