Teg <[EMAIL PROTECTED]> wrote:
> 
> dhc> Recompile version 3.5.2 with -DSQLITE_MEMORY_SIZE=10000000
> dhc> or however much memory you want SQLite to use.  This will
> dhc> create a static array of char[] of size 10000000 (or whatever
> dhc> other size you give it) and use that instead of malloc()
> dhc> to obtain all the memory it needs.  With this approach it
> dhc> is impossible for SQLite to use more than the specified
> dhc> amount of memory since it never calls malloc().
> 
> 
> Win32 here. I set this option and get insta-crashes in both debug and
> release builds. Using the latest 3.5.2 from the website.
> 
> -DSQLITE_MEMORY_SIZE=10000000
> 
> It crashes right here when it was trying to push pager pages out.
> 

Works OK when I do it.

> int sqlite3OsWrite(sqlite3_file *id, const void *pBuf, int amt, i64 offset){
>   DO_OS_MALLOC_TEST;
>   return id->pMethods->xWrite(id, pBuf, amt, offset);
> }
> 
> 
> If you need more information let me know. It's not causing my any real
> problems, I just disable the setting and it's back to normal.
> 
> 
> -- 
> Best regards,
>  Teg                            mailto:[EMAIL PROTECTED]
> 
> 
> .



-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------

Reply via email to