Hi list.

Just thought I'd pass this along as a suggestion:

I mistakenly called:
sz = pgSz * pgCache...
pBuf = malloc (sz).
   sqlite3_config(SQLITE_CONFIG_PAGECACHE,pBuf, sz,  pgCache  );

This functioned however the sqlite MallocInit cored due to a pageSize of 32Meg. 
The documentation does clearly indicate that the sz is the size of the page, 
but Maybe something in the comment section as well, 
   
#define SQLITE_CONFIG_PAGECACHE     7  /* void*, int sz, int N */Maybe changing 
this too: would be clearer ?
#define SQLITE_CONFIG_PAGECACHE     7  /* void*, int pgSZ, int N */

Maybe an internal  sanity check could be implemented in sqlite3_config as well?

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to