Re: [sqlite] sqlite3_prepare memory leak

2008-11-05 Thread Bartosz Wiklak
Hi, Sherief, thank you for our kind help. I really did use globals. I found a way to run DumpMemorLeaks after all globals and static variables are deallocated, I used _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); I made some malloc and new leaks around the code I'm interested in t

Re: [sqlite] sqlite3_prepare memory leak

2008-11-04 Thread Bartosz Wiklak
> Looks like the problem is from your app indeed. Again, what does > _CrtDumpMemoryLeaks() say? I really don't see any way to use _CrtDumpMemoryLeaks(). It always shows hundreds of blocks even if I'm sure that nothing was allocated (no malloc or new). I know that this is not a place to learn how

Re: [sqlite] sqlite3_prepare memory leak

2008-11-04 Thread Bartosz Wiklak
odalityID=(SELECT id FROM modality WHERE symbol='CR') " "AND userID=(SELECT id FROM user WHERE login='basiek') " "AND regionNR=0" ); sqliteDB->readBlob( lpbuf, &data, &dataLength); leaks. Isn't it strange

Re: [sqlite] sqlite3_prepare memory leak

2008-11-04 Thread Bartosz Wiklak
Hi, I have written simple app that does the same query on the same database and I have no memory leaks !?! I build two apps with similar options (f.e. multithreaded debug dll) but my main app is written in winapi and "simple" app as console app. I have really no idea what can make these two act so

[sqlite] sqlite3_prepare memory leak

2008-11-03 Thread Bartosz Wiklak
o_extension + 12492 bytes sqlite3.dll!sqlite3_reset_auto_extension + 13270 bytes sqlite3.dll!sqlite3_prepare + 31 bytes RSR2.exe!SQLite3pp::readBlob Line 164 (c:\furtado\furtado\sqlite\sqlite3pp.cpp) I am closing database properly. Am I doing something wrong or is