Re: [sqlite] Corrupted database file.

2011-01-06 Thread Greg Morehead
a timestamp that seems to have changed. Greg -Original Message- From: sqlite-users-boun...@sqlite.org on behalf of Max Vlasov Sent: Thu 1/6/2011 9:55 AM To: General Discussion of SQLite Database Subject: Re: [sqlite] Corrupted database file. On Thu, Jan 6, 2011 at 4:34 PM, Greg Morehea

Re: [sqlite] Corrupted database file.

2011-01-06 Thread Greg Morehead
e: [sqlite] Corrupted database file. On Wed, Jan 5, 2011 at 10:05 PM, Greg Morehead wrote: > I seem to have a corrupted DB which I was able to fix with a vacuum > command. Any insights on how this could occur would be greatly appreciated. > > > Greg, can you post full or partial (

[sqlite] Corrupted database file.

2011-01-05 Thread Greg Morehead
I seem to have a corrupted DB which I was able to fix with a vacuum command. Any insights on how this could occur would be greatly appreciated. Before the vacuum command: - sql: select rowid, timestamp from DCDCs order by rowid asc limit 1; - Result: 7513686 1284840120682 - sql: select

Re: [sqlite] Memory leak with sqlite3_exec on qnx 6.4.1

2009-06-29 Thread Greg Morehead
Thanks Eric, you nailed it on the head! With this parameter I am able to configure the page usage and stop the memory growth where I want it! -Original Message- From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org]on Behalf Of Eric Minbiole Sent: Monday, June

Re: [sqlite] Memory leak with sqlite3_exec on qnx 6.4.1

2009-06-29 Thread Greg Morehead
qlite] Memory leak with sqlite3_exec on qnx 6.4.1 On Fri, Jun 26, 2009 at 05:07:16PM -0400, Greg Morehead scratched on the wall: > > If I close then reopen the database all my memory is recovered. > > Is this by design??? I was intending on keeping a connection open most of > t

Re: [sqlite] Memory leak with sqlite3_exec on qnx 6.4.1

2009-06-29 Thread Greg Morehead
: [sqlite] Memory leak with sqlite3_exec on qnx 6.4.1 On Fri, 26 Jun 2009 17:07:16 -0400, "Greg Morehead" wrote: > >If I close then reopen the database all my memory is recovered. > >Is this by design??? Yes, what you see is probably the page cache. >I was intendin

Re: [sqlite] Memory leak with sqlite3_exec on qnx 6.4.1

2009-06-26 Thread Greg Morehead
If I close then reopen the database all my memory is recovered. Is this by design??? I was intending on keeping a connection open most of time. -Original Message- From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org]on Behalf Of Greg Morehead Sent: Friday

Re: [sqlite] Memory leak with sqlite3_exec on qnx 6.4.1

2009-06-26 Thread Greg Morehead
FYI. I replaced the sqlite3_exec call with sqlite3_prepare_v2, sqlite3_step, sqlite3_finalize. Same results. -Original Message- From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org]on Behalf Of Greg Morehead Sent: Friday, June 26, 2009 4:21 PM To: General

Re: [sqlite] Memory leak with sqlite3_exec on qnx 6.4.1

2009-06-26 Thread Greg Morehead
sqlite3_free is only being called if there is an error. See http://sqlite.org/c3ref/exec.html g -Original Message- From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Greg Morehead Sent: Friday, June 26, 2009 2:49 PM To: sqlite-users@sqlite.org

Re: [sqlite] Memory leak with sqlite3_exec on qnx 6.4.1

2009-06-26 Thread Greg Morehead
emory leak with sqlite3_exec on qnx 6.4.1 On Jun 26, 2009, at 3:49 PM, Greg Morehead wrote: > The extremely simple app below leaks. What am I doing wrong?? > Please help. How do you know it is leaking memory? How are you measuring? > > > #include > #include > #include "s

[sqlite] Memory leak with sqlite3_exec on qnx 6.4.1

2009-06-26 Thread Greg Morehead
The extremely simple app below leaks. What am I doing wrong?? Please help. #include #include #include "stdio.h" #include "sqlite3.h" #include #define TFQ_SQL_DB_NAME "/powerblock/datalog/TFQ-test.db" #define _TABLE_NAME "sqltest" int main(int argc, char *argv[]) { char sql[1024];