"Igor Tandetnik" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Ben Smith" <[EMAIL PROTECTED]> wrote in > message > news:[EMAIL PROTECTED] >> I'm using sqlite_reset at end of each loop. > > sqlite3_reset doesn't destroy a statement handle. It just prepares it > for another round of steps. > >> My understanding is that's >> the same as if I finalized it and setup a new sqlite3_stmt.
Now that I think about it, you could think of sqlite3_reset as sqlite3_finalize followed by sqlite3_prepare (except that all bound parameters are preserved). Even with this interpretation, your program still has 2001 prepares and only 1001 finalizes, and you still leak 1000 statements. Igor Tandetnik _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users