I am running version 3.3.6 compiled with Visual Studio .net 2003 in a single threaded app.

While using sqlite3_exec to execute a "COMMIT;", in run into a null pointer problem in sqlite3_step.

I added tests for the null pointer to vdbeapi.c:

    if (NULL == p) {
         DebugBreak();
     }
   #ifndef SQLITE_OMIT_EXPLAIN
     if( p->explain ){
       rc = sqlite3VdbeList(p);
     }else
   #endif /* SQLITE_OMIT_EXPLAIN */
     {
       rc = sqlite3VdbeExec(p);
     }

     if (NULL == p) {
         DebugBreak();  /* This is the point the failure is detectected */
     }


So it seems that sqlite3VdbeExec(p) is somehow clobbering my statement pointer.

Anybody have a suggestion?

Reply via email to