Besides the unneded function calls, and a lot of checks for valid data, the problem here is that you have to copy data using memcpy or somthing similar:
instead of chCommand = (const char*)sqlite3_column_text(ptrSel,2); do memcpy(chCommand, sqlite3_column_text(ptrSel,2), sqlite3_column_bytes(ptrSel,2)); chCommand[sqlite3_column_bytes(ptrSel,2)] = 0; ----------------------------------------------------------------------------- To unsubscribe, send email to [EMAIL PROTECTED] -----------------------------------------------------------------------------