On Jun 20, 2010, at 7:33 PM, Roger Binns <[email protected]> wrote: > > That is bad advice! The return code of open is irrelevant. If ppDb > is set > to non-NULL then you need to call sqlite3_close on it. ppDb will > almost > always be set to something. One example of when it is not is if > there is no > memory left in which case it will be set to NULL. > > Even if the open failed (ie SQLITE_OK not returned) memory is > allocated for > the error message and code so you do need to call close to free that > up. > > Roger
Roger, Ok, that is what i am doing, checking the value of db and closing if it has a value. So why might closing the db cause a crash? Sam _______________________________________________ sqlite-users mailing list [email protected] http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

