Ok,
Maybe the solution is:
1) try to close the connection: sqlite3_close
2) if error code is SQLITE_BUSY,
 a) use sqlite3_next_stmt to finalize dangling statements
 b) retry to close the connection
Step (1) ensures that FTS related statements are finalized.
Thanks.

On Sat, Jun 7, 2014 at 7:49 PM, gwenn <gwenn.k...@gmail.com> wrote:
> Hello,
> How do you prevent double free/finalize of statements created by the
> FTS module ?
> I am using sqlite3_next_stmt to finalize all dangling statements
> before closing the connection but the program crashes because the FTS
> module finalizes them too when sqlite3_close is called...
> May be I should use sqlite3_close_v2 (not available on MacOS X: SQLite
> version 3.7.13) ?
>
> Thanks
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to