Re: [sqlite] memory usage after close database on linux arm

2017-06-03 Thread Simon Slavin
On 2 Jun 2017, at 10:18am, Stephane Guibert wrote: > sqlite3_finalize(... > sqlite3_close_v2(... > }while First, check out the result returned by sqlite3_close() as Clemens wrote. If that doesn’t give a useful result code, continue. After closing the file, execute sqlite3_shutdown(). Does

Re: [sqlite] memory usage after close database on linux arm

2017-06-03 Thread Clemens Ladisch
Stephane Guibert wrote: > I get memory usage not freed at close. > > the return is SQLITE_OK at each step: > > do{ > sqlite3_open_v2(...,&db,SQLITE_OPEN_READWRITE,0); > sqlite3_exec(db,"PRAGMA journal_mode = MEMORY",0,0,0); > sqlite3_prepare_v2(db... > sqlite3_step( statement Begin //BEGIN EXCLUSI

[sqlite] memory usage after close database on linux arm

2017-06-03 Thread Stephane Guibert
Hi SQLite creators, for embedded Linux 2.6.35.3 on armV5, I get memory usage not freed at close(ltib compilation environment). with this following test ( only one connection to the database ): 1) open database 2) prepare statement 3) SQL request inside begin commit 4) finalize statement 5) cl