I've exhausted ALL combinations of Target CPU & Prefer 32-bit with both 32- & 64-bit SQLite3.DLL. The 32-bit SQLite3.DLL fails during the 4th callback irrespective of the number of rows and columns in the SQL retrieving the data. The 64- bit SQLite3.DLL works OK. PS: The client code<sup>1</sup> is [here](https://sqlite.org/forum/forumpost/0eb0c71581?t=h) if you want to try out your configuration. Please do and report back. <sup>1</sup> You'll need to change the hard-coded values.