I am running sqlite3_config() before opening my db. I am not running 
sqlite3_initialize() so do I need sqlite3_shutdown().

My c program is now getting a segmentation fault since I added a call to 
sqlite3_shutdown() before sqlite3_config().

Thanks,

Brian
  

________________________________
 From: Richard Hipp <d...@sqlite.org>
To: General Discussion of SQLite Database <sqlite-users@sqlite.org> 
Sent: Monday, April 1, 2013 1:35 PM
Subject: Re: [sqlite] Q: When to use sqlite3_shutdown ?
  
On Mon, Apr 1, 2013 at 4:31 PM, Patrick Herbst <paher...@gmail.com> wrote:

> When is there a need to use sqlite3_shutdown?
>
> I don't really see a clear explanation of when/how its needed.
>
> Any tips, please?
>

You have to run sqlite3_shutdown() prior to using sqlite3_config() if you
have previously started up and closed database connections.  Other than
that, sqlite3_shutdown() is usually optional.

It is theoretically possible that a custom 3rd-party VFS might require
sqlite3_shutdown().  But none of the built-in VFSes (for unix and windows)
require it.  Nor am I aware of any actual VFS implementations that require
it.

-- 
D. Richard Hipp
d...@sqlite.org
_______________________________________________
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

Reply via email to