[Mono-dev] System.Data.SQLite under mono
Marek Habersack
grendel at twistedcode.net
Tue May 12 12:44:47 EDT 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Arne Claassen wrote:
> I'm trying to get phxsoftware's System.Data.SQLite managed-only dll
> working under mono. The readme claims i should just need the binary in
> the same directory and it works for mono. It does work for windows, i
> just drop sqlite3.dll in the dir and it works. However, i try the same
> with sqlite3.so and i get the following on opening the connection:
>
> Unhandled Exception: System.EntryPointNotFoundException:
> sqlite3_next_stmt
> at (wrapper managed-to-native)
> System.Data.SQLite.UnsafeNativeMethods:sqlite3_next_stmt (intptr,intptr)
> at System.Data.SQLite.SQLiteBase.ResetConnection
> (System.Data.SQLite.SQLiteConnectionHandle db) [0x00000]
> at System.Data.SQLite.SQLiteBase.CloseConnection
> (System.Data.SQLite.SQLiteConnectionHandle db) [0x00000]
> at System.Data.SQLite.SQLiteConnectionHandle.ReleaseHandle ()
> [0x00000]
> at System.Runtime.InteropServices.CriticalHandle.Dispose (Boolean
> disposing) [0x00000]
> at System.Runtime.InteropServices.CriticalHandle.Dispose () [0x00000]
> at System.Data.SQLite.SQLite3.Close () [0x00000]
> at System.Data.SQLite.SQLiteConnection.Close () [0x00000]
> at System.Data.SQLite.SQLiteConnection.Open () [0x00000]
> at SqliteMixedTest.Program.Main (System.String[ args) [0x00000]
>
> Same result if i try to rename to .so to .dll or use <dllmap> in the
> config. True whether i use the binary for sqlite-3.8.14 or build it
> from source. I tried this a while back with mono 1.9.1 and now i'm
> trying it with 2.4. Any suggestions?
You need a newer version of sqlite3 native .so (3.6.x)
best regards,
marek
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkoJp3wACgkQq3909GIf5uqIuQCeI16kIgn/WLjUS4bIcb/endnO
NAIAnjYltYFvkzIm0ddeG/qCPW/WqyHw
=qTzf
-----END PGP SIGNATURE-----
More information about the Mono-devel-list
mailing list