Re: [sqlite] SQLite 3.6.1 memory leak?
Thanks Eric for your help. You are right sqlite3_shutdown() fixed the memory leak under 3.6.1. I tested SQLite 3.6.2 and it does not leak even if I don't call sqlite3_shutdown. I will proceed with SQLite 3.6.2 Ulric -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eric Minbiole Sent: August 30, 2008 1:21 PM To: General Discussion of SQLite Database Subject: Re: [sqlite] SQLite 3.6.1 memory leak? Ulric Auger wrote: > Hi, > > Since I updated to SQLite 3.6.1 I have a memory leak when my application > exits. > > If I compile using SQLite 3.5.8 I don't have the memory leak. Be sure to call sqlite3_shutdown() just before the application exits-- this should free any outstanding resources held by SQLite. (As a test, I commented out this shutdown call, and was able to reproduce the same leak warning message you reported.) ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
Re: [sqlite] SQLite 3.6.1 memory leak?
Ulric Auger wrote: > Hi, > > Since I updated to SQLite 3.6.1 I have a memory leak when my application > exits. > > If I compile using SQLite 3.5.8 I don't have the memory leak. Be sure to call sqlite3_shutdown() just before the application exits-- this should free any outstanding resources held by SQLite. (As a test, I commented out this shutdown call, and was able to reproduce the same leak warning message you reported.) ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
Re: [sqlite] SQLite 3.6.1 memory leak?
There's not enough information in your post for us to comment -- which is probably why nobody responded earlier. The unit tests for SQLite create thousands of connections and run hundreds of thousands of commands without leaking. So there's a probability that you may be doing something wrong, yes. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ulric Auger Sent: Friday, August 29, 2008 11:13 AM To: sqlite-users@sqlite.org Subject: [sqlite] SQLite 3.6.1 memory leak? Hi, Since I updated to SQLite 3.6.1 I have a memory leak when my application exits. If I compile using SQLite 3.5.8 I don't have the memory leak. VS 2005 dump: Detected memory leaks! Dumping objects -> c:\dev\mescruiser\lib\sqlite\sqlite3.c(11938) : {4754} normal block at 0x01BFC460, 48 bytes long. Data: <( > 28 00 00 00 00 00 00 00 B0 B8 15 00 FF FF FF FF Object dump complete. Using LeakFinder/StackWalker it seem that the memory leak originate from sqlite3_open. Is this a real memory leak or I'm doing something wrong? Thanks Ulric ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
[sqlite] SQLite 3.6.1 memory leak?
Hi, Since I updated to SQLite 3.6.1 I have a memory leak when my application exits. If I compile using SQLite 3.5.8 I don't have the memory leak. VS 2005 dump: Detected memory leaks! Dumping objects -> c:\dev\mescruiser\lib\sqlite\sqlite3.c(11938) : {4754} normal block at 0x01BFC460, 48 bytes long. Data: <( > 28 00 00 00 00 00 00 00 B0 B8 15 00 FF FF FF FF Object dump complete. Using LeakFinder/StackWalker it seem that the memory leak originate from sqlite3_open. Is this a real memory leak or I'm doing something wrong? Thanks Ulric ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
[sqlite] SQLite 3.6.1 memory leak?
Hi, Since I updated to SQLite 3.6.1 I have a memory leak when my application exits. If I compile using SQLite 3.5.8 I don't have the memory leak. VS 2005 dump: Detected memory leaks! Dumping objects -> c:\dev\mescruiser\lib\sqlite\sqlite3.c(11938) : {4754} normal block at 0x01BFC460, 48 bytes long. Data: <( > 28 00 00 00 00 00 00 00 B0 B8 15 00 FF FF FF FF Object dump complete. Using LeakFinder/StackWalker it seem that the memory leak originate from sqlite3_open. Is this a real memory leak or I'm doing something wrong? Thanks Ulric ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users