Please investigate <Attempted to read or write protected memory.> Something is amiss with [32-bit SQLite3.DLL](https://sqlite.org/2021/sqlite-dll-win32-x86-3340100.zip)<sup>Care! This is a download link</sup> The [64-bit SQLite3.DLL](https://sqlite.org/2021/sqlite-dll-win64-x64-3340100.zip)<sup>Care! This is a download link</sup> does NOT have a problem. <b>What is amiss?</b> Identical callback code fails with 32-bit SQLite3.DLL but works with 64-bit SQLite3.DLL. Details are in [this thread](https://sqlite.org/forum/forumpost/c280899a36?t=h) To summarise, using [this code](https://sqlite.org/forum/forumpost/0eb0c71581?t=h) [Larry Bradsfield] independently tested using the 64-bit version and succeeded - see thread  in the same topic. I recompiled my project with 64-bit SQLite3 and was able to use the callback with 15,000 records.