arbalest06 wrote:
i already got it working..
I'm glad to hear that.
however, is still have the free(): invalid pointer problem in my
sqlite3_close..this is my code for my close api:
if( GDBM_Db_p != NULL )
{
printf( "FDBM_Close: GDBM_Db_p is not NULL\n" );
/* closes the database */
sqlite3_close( GDBM_Db_p );
}
else
{
printf( "FDBM_Close: GDBM_Db_p is NULL\n" );
}
the problem only occurs when sqlite3_prepare returns an error code other
than SQLITE_OK..mostly, ..SQLITE_ERROR
I suspect that your pointer is being changed somewhere along the line.
Print the value of your pointer immediately after it is set by
sqlite3_open(), and just before you call sqlite3_close(). These values
should be the same, if not you will have to find out where it is being
overwritten.
HTH
Dennis Cote
-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------