[Mono-bugs] [Bug 635995] New: Attempting to use Mono.Data.Sqlite on an Android 2.2 Emulator produces a DllNotFound exception
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Aug 31 16:21:26 EDT 2010
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: mono-bugs at lists.ximian.com
ReportedBy: hudson at alumni.unc.edu
QAContact: mono-bugs at lists.ximian.com
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.
More information about the mono-bugs
mailing list