> On May 19, 2017, at 5:34 PM, Map Pin Support 
> <support-notificati...@map-pin.com> wrote:
> 
> What I am seeing is the app crash as a result of “too many files open”, 
> however I believe I am opening the database file only once:

It’s been a while since I’ve used FMDB, but IIRC it opens a pool of database 
connections to dispatch requests to. That’s a pretty common technique. It 
sounds like something is going wrong with that pool and it’s opening more and 
more connections.

This is not an issue related to SQLite itself. You’ll have better luck asking 
on an FMDB forum/mailing list (if there is one?) or perhaps filing an issue 
against FMDB on Github.

Or if you feel like investigating the issue yourself, set breakpoints on 
sqlite3_open and sqlite3_open_v2, and by looking at the backtrace and the code 
you may get an idea of why they’re being called so much.

—Jens
_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to