Mitch Shin wrote:
> 
> The specific error is "Attempted to read or write protected memory.
> This is often an indication that other memory is corrupt."
> 

I've been able to reproduce the issue here locally.  It appears to be caused
by heap corruption due to mismatched usage of malloc() and sqlite3_malloc()
in
the SpatiaLite extension itself.

The easiest way to avoid this type of issue is to avoid using the CRT
malloc()
and free() functions from within any DLL that needs to directly interact
with
SQLite (especially from within loadable extensions).

Ideally, the sqlite3_malloc() and sqlite3_free() functions should be used
instead.

--
Joe Mistachkin

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

Reply via email to