-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 27/07/12 07:22, Arbol One wrote: > Before calling the destructor, I would like to make sure that all the > sqlite3_stmt have been 'finalized', is there a function in SQLite that > that can help me do this, or should I just use 'NULL'?
Your best bet is to use reference counting. Each statement, backup etc should add one to the database reference count, and subtract one when finalized. Then only call the database destructor once its reference count reaches zero. Roger -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAlATFBAACgkQmOOfHg372QTdCQCfS6Y/E3G8lFcI5jDlYFY/l7XC GkkAoMrxm+adE0WQNsb3kM7hSkWMbTc/ =Lf/f -----END PGP SIGNATURE----- _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users