2007-12-16, 01:30 AM
I get the following exception when attempting to query the DB from my plugin.
I could understand a DB 'locked' exception or various others but I don't understand this DLL entry point error.
Code as follows...To be honest, I'm not sure where I got that SQL query from as it was a couple of months ago when I did it. I think it was probably a VS DataSet wizard generation. It looks OK to me as far as I can tell.
I don't understand the 'entry point' thing. Any ideas? Google isn't helping.
[EDIT] The exception occurs at the comm.ExecuteReader() point.
Cheers,
Brian
Code:
DVBTR: System.EntryPointNotFoundException: Unable to find an entry point named 'sqlite3_errmsg_stmt_interop' in DLL 'System.Data.SQLite.DLL'
I could understand a DB 'locked' exception or various others but I don't understand this DLL entry point error.
Code as follows...
Code:
SQLiteConnection conn = null;
SQLiteCommand comm = null;
SQLiteDataReader dr = null;
conn = new SQLiteConnection("data source=" + GBInstallDir + "gbpvr.db3");
comm = new SQLiteCommand("SELECT BDA_RECORDING_SOURCE.board, CAPTURE_SOURCE.name, BDA_RECORDING_SOURCE.capture_source_oid FROM BDA_RECORDING_SOURCE INNER JOIN CAPTURE_SOURCE ON BDA_RECORDING_SOURCE.capture_source_oid = CAPTURE_SOURCE.oid", conn);
comm.CommandType = System.Data.CommandType.Text;
comm.Connection.Open();
dr = comm.ExecuteReader();
I don't understand the 'entry point' thing. Any ideas? Google isn't helping.
[EDIT] The exception occurs at the comm.ExecuteReader() point.
Cheers,
Brian