On 2/26/2016 12:07 PM, Igor Korot wrote: > Full code is in here: > http://stackoverflow.com/questions/35345258/crash-when-disconnecting-from-sqlite-database
Off the top, the example never calls Connect, which leaves SQLiteDatabase::m_db contain uninitialized garbage (you don't initialize it in constructor either), and then sqlite3_close(garbage) call in destructor is having a bad time. You don't even expose Connect() on Database, so it's unclear how the main program is supposed to use the class. Also, passing std::vector<std::wstring> across module boundaries is asking for trouble. There is a very narrow band of build configuration parameters in which this would work. -- Igor Tandetnik

