[sqlite] Sqlite fd problem!

2015-11-16 Thread Marcus Grimm
you are probably missing to finalize the statement prior calling sqlite3_close(). additionally you may check the return value of sqlite3_close() - it will tell you something. marcus Am 16.11.2015 um 12:02 schrieb Nader Lavasani: > Hi all, > > This happened in iOS with Objective-C language. > >

[sqlite] Sqlite fd problem!

2015-11-16 Thread Nader Lavasani
Hi all, This happened in iOS with Objective-C language. When we open a database(sqlite3_open()), that creates a fd(file descriptor) and when we close the database(sqlite3_close()) that only close connection and fd remain open.so when user open and close many db(or one db for many time) so many

[sqlite] Sqlite fd problem!

2015-11-16 Thread Random Coder
On Mon, Nov 16, 2015 at 3:02 AM, Nader Lavasani wrote: > Bug? or my silly mistake?! >From the documentation for sqlite3_prepare_v2: "The calling procedure is responsible for deleting the compiled SQL statement using sqlite3_finalize() after it has finished with it." You're not doing this.