Igor Korot wrote: > The DLL where SQLite pointer is alocated there is a DLLMain.
And what does it do? > BOOL APIENTRY DLLMain() > { > } Is it really empty? > MainFrame::~MainFrame() > { > delete m_db; // this is where the crash happens > } When exactly is this destructor called? Can you show a stack trace? Regards, Clemens