On 19 Mar 2013, at 4:05am, Alykhan Jetha <[email protected]> wrote:

> What's actually happening is I'm getting a SQLITE_NOMEM when I run the 
> queries in Process A (after Process B finished and checkpoints).

Once again the tactic pays off: check every single result code SQLite returns, 
even if it's nowhere near your problem statement.

Are you using _exec() or _prepare(),_step(),_finalize() ?  Both _exec() and 
_prepare() may unexpectedly use a ton of memory.  The other two should stand 
very little chance of returning SQLITE_NOMEM.

SQLite has internal memory debugging code:

<http://www.sqlite.org/malloc.html>

but you may be more likely to find your problem using a standard memory tools 
like valgrind.

Simon.
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to