The premier analysis tool that I know about is valgrind:

http://valgrind.org/info/about.html


On 9/15/05, Mark Wyszomierski <[EMAIL PROTECTED]> wrote:
> 
> Hi all,
> Is there anyway to track down memory leaks with using sqlite? I have 2 
> apps
> sharing one database file. Application #1 only ever uses a single thread, 
> so
> I just open the db struct at startup, and close it at shutdown. Closing 
> down
> returns SQLITE_OK. My second app opens a handle to the database at 
> startup,
> closes it at shutdown. However, it sometimes spawns threads, and at the
> beginning of each thread, I get a new handle to the database, and close it
> when the thread is killed. So I'm following the rule of not sharing 
> handles
> between threads. Now when I close app #1, and app #2 has accessed the
> database in a multithreaded way, I get this dump:
> 


---
The Castles of Dereth Calendar: a tour of the art and architecture of 
Asheron's Call
http://www.lulu.com/content/77264

Reply via email to