Jay Sprenkle wrote: > On 1/24/07, Jef Driesen <[EMAIL PROTECTED]> wrote: >> >> Do I need to use sqlite3_close if the call to sqlite3_open indicated an >> error? The documentation for sqlite3_open says "An sqlite3* handle is >> returned in *ppDb, even if an error occurs." So I assumed the answer is >> yes. > > I never do, since if open fails I assumed the handle wasn't valid. > It almost never happens so the consequences of being wrong are pretty > small.
Memory is allocated for an error message. sqlite_close will free that :-) Roger ----------------------------------------------------------------------------- To unsubscribe, send email to [EMAIL PROTECTED] -----------------------------------------------------------------------------