If it matters, I'm trying Win 8.1 with MSVC 2010. Thank you.
On Mon, Jan 25, 2016 at 12:18 AM, Igor Korot <ikorot01 at gmail.com> wrote: > Hi, ALL, > I have a strange problem. > > I am trying to use sqlite in my program. It has a main application and > couplef DLLs. > > I am getting the connection in one of the DLL, then the pointer is passed up > to the main application. > > Upon exiting from the application I'm trying to close the connection and > delete all the memory. > > Unfortunately upon exiting the application it crashes inside > sqlite3_mutex_enter(). > The comment above the function says: > > [quote] > /* > ** Obtain the mutex p. If some other thread already has the mutex, block > ** until it can be obtained. > */ > [/quote] > > The DLL does not start any threads, in fact the application will be 1 > thread only. > So is there some compile-time switch I should use to mitigate the issue? > > Moreover I don't understand why am I getting the assertion - there is no MT > involved. > > Can someone shed some lights? > > Thank you.