Thanks. I will try again. I think your analysis of what I sent most recently sounds plausible, but the earlier places I saw the bug did NOT have SQLITE_DEBUG set. So I think that is a red herring. But please wait and I'll send you a build without that flag set.