https://bugzilla.novell.com/show_bug.cgi?id=635995
https://bugzilla.novell.com/show_bug.cgi?id=635995#c0 Summary: Attempting to use Mono.Data.Sqlite on an Android 2.2 Emulator produces a DllNotFound exception Classification: Mono Product: MonoDroid Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Class Libraries AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- Description of Problem: Code using Mono.Data.Sqlite that runs under Windows produces a DllNotFound exception on the Android emulator. Steps to reproduce the problem: 1. Create a SqliteConnection 2. Call Open() Actual Results: Got exception:System.DllNotFoundExceptoin: sqlite3 at (wrapper managed-to-native) Mono.Data.Sqlite. UnsafeNativeMethods: sqlite3_open_v2 (byte[],intptr&,int,intptr) at Mono.Data.Sqlite.SQLite3.Open Expected Results: Open database we can read & write. How often does this happen? Repeatable Additional Information: We get pretty much the same exception on Windows if the DLL isn't present in our running directory. Simplified version of Javascript code that runs on Windows but catches an exception on Android: import Mono.Data.Sqlite; import System.Data.ConnectionState; var dbcon : SqliteConnection = null; function OpenDB () { if (dbcon == null) { var connStrn : String = "URI=file:MyApp.db"; dbcon = new SqliteConnection (connStrn); } if (dbcon != null) { try { dbcon.Open(); } catch (e) { // tie into your error reporting framework here } } } >From #monodroid: <kangaroo>: TomHudson: Sounds like a trivial bug <kangaroo>: can you file it and I'll look at getting it fixed for the next preview? <kangaroo>: thanks .. <kangaroo>: jonp: Its /system/lib/libsqlite.so -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
