Igor Korot wrote: > sqlite.dll!sqlite3_mutex_enter(sqlite3_mutex * p) Line 19996 + 0xc > bytes C > sqlite.dll!sqlite3Close(sqlite3 * db, int forceZombie) Line 726 + 0xc > bytes C > sqlite.dll!sqlite3_close(sqlite3 * db) Line 772 + 0xe bytes C > sqlite.dll!SQLiteDatabase::Disconnect(...) Line 51 + 0xc bytes C++ > dialogs.dll!DisconnectFromDb(Database * db) Line 108 + 0x13 bytes C++ > docview.exe!MainFrame::~MainFrame() Line 73 + 0xf bytes C++ > docview.exe!MainFrame::`scalar deleting destructor'() + 0x16 bytes > C++ > docview.exe!wxAppConsoleBase::DeletePendingObjects() Line 637 + 0x23 > bytes C++ > docview.exe!wxAppConsoleBase::ProcessIdle() Line 445 C++
This looks OK. Are you ever calling sqlite3_shutdown()? Are you calling sqlite3_close() from more than one place, or more than once? (Add logging to find out.) Regards, Clemens