> As you can see I use sqlite3_prepare/sqlite3_finalize pairs. My memory > leak checker ( Deleaker : www.deleaker.com ) reports memory leak at > sqlite3_prepare : > > msvcrt.dll!malloc > sqlite3.dll!sqlite3_malloc + 120 bytes > sqlite3.dll!sqlite3_realloc + 27 bytes > sqlite3.dll!sqlite3_release_memory + 200 bytes > sqlite3.dll!sqlite3_release_memory + 242 bytes > sqlite3.dll!sqlite3_set_authorizer + 1072 bytes > sqlite3.dll!sqlite3_set_authorizer + 22149 bytes > sqlite3.dll!sqlite3_declare_vtab + 11632 bytes > sqlite3.dll!sqlite3_prepare16_v2 + 18070 bytes > sqlite3.dll!sqlite3_declare_vtab + 27000 bytes > sqlite3.dll!sqlite3_declare_vtab + 31896 bytes > sqlite3.dll!sqlite3_declare_vtab + 36104 bytes > sqlite3.dll!sqlite3_reset_auto_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 it some kind of bug?
99% of the time the leaks are due to API abuse. Post a small sample app (that build and runs) exhibiting the behavior, if possible. What does _CrtDumpMemoryLeaks() say? - Sherief _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users