On Mon, Jun 21, 2010 at 11:56:09PM -0400, Sam Carleton scratched on the wall:

> I am NEVER capturing anything in the log file, so it looks like everything
> is returning the correct. I am a bit stumped right now, so if it is alright,
> I am going to post my code:

  If you're doing a double close, it won't log an error, it will just crash.

> void CSQLiteDB::Close()
> {
>     if(m_db)
>     {
>         sqlite3 *db = m_db;
>         m_db == NULL;

  No.

>         sqlite3_close(db);
>     }
> }

  If you're manually calling ::Close() anywhere, when the object is
  destroyed it will do a double close.

   -j

-- 
Jay A. Kreibich < J A Y  @  K R E I B I.C H >

"Intelligence is like underwear: it is important that you have it,
 but showing it to the wrong people has the tendency to make them
 feel uncomfortable." -- Angela Johnson
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to