--- [EMAIL PROTECTED] wrote: > You'll need to manually construct your makefile - > the > configure script will not do this. You can either > edit > the Makefile that configure generates or write your > own using Makefile.linux-gcc as a template. > > The SQLITE_ENABLE_MEMORY_MANAGEMENT feature is > intended > for use on embedded devices where a manually created > Makefile is normally required anyway. What exactly > are you trying to do? Do you have some unreasonable > expectation of what sqlite3_release_memory is going > to accomplish? > > -- > D. Richard Hipp <[EMAIL PROTECTED]> > Thanks for the quick reply.
I'm writing a fairly simple server program, no threads (at least at this point) and I've got a small memory leak - each time the server accepts a request and adds the information to the database, it grabs 3-500 bytes of memory and doesn't let it go. I'd like to tell sqlite3_release_memory to drop the appropriate amount of memory and thus fix the memory leak. I've been using sqlite3_free_table, and while that reduces the memory use, it doesn't completely fix the problem. What specifically do I need to add to the Makefile to enable SQLITE_ENABLE_MEMORY_MANAGEMENT? Thanks, Alex