Some time ago, I had a similar error because included a reference to a pointer
sqlErrMsgPtr = (CHAR *) sqlite3_errmsg (dbPtr) in my SQLite class destructor. As someone has suggested, does look to be associated with a dangling pointer. HTH A.J. Millan ----- Original Message ----- From: "Sam Carleton" <scarle...@miltonstreet.com> To: "General Discussion of SQLite Database" <sqlite-users@sqlite.org> Sent: Sunday, June 20, 2010 11:17 PM Subject: [sqlite] When to close a db? >I am getting some strange behavior out of my app, which happens to be > both an Apache module and some Axis2/C Web Services which run under > Apache. From time to time, it is VERY inconsistent, when the code > calls sqlite3_close() the Apache server crashes. I don't recall the > error right off. > > From reading the documentation, it looks to me like sqlite3_close() > should be called if *ppDb has a value, irregardless of the result code > from the sqlite3_open_v2() call. Is there more to it? > > Sam > _______________________________________________ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users