On 3/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi all,
> I am having real problems with SQLite on Windows CE (.NET 4.1 and Pocket PC
> 2003).
> ret = sqlite3_get_table(db, "SELECT * FROM artic", &result,
> &rows, &cols, &errmsg);
> if (ret != SQLITE_OK)
> {
> MessageBox(_T("Error en SQL"),_T("Error"),MB_OK);
> sqlite3_free(errmsg);
You might call sqlite3_free_table(result) here. Without looking at the source
code it might have allocated a result even though there was an error.
> return;
> }
> else {
> MessageBox(_T("Erroron SQL sentence"),_T("Error"),MB_OK);
> }
> sqlite3_free_table(result);
> sqlite3_close(db);
> }
Did you look at the source code for sqlite3_get_table()?
It's easy to get and may be very helpful.