vijirams / csharp-sqlite

Automatically exported from code.google.com/p/csharp-sqlite
Other
0 stars 0 forks source link

csharp-sqlite barfing in mono 2.4.2.3 #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
here's the stack trace:

Unhandled Exception: System.NotImplementedException: The requested feature
is not implemented.
  at System.IO.FileStream.get_SafeFileHandle () [0x00000] 
  at CS_SQLite3.csSQLite.winOpen (CS_SQLite3.sqlite3_vfs pVfs,
System.String zName, CS_SQLite3.sqlite3_file pFile, Int32 flags,
System.Int32& pOutFlags) [0x00000] 
  at CS_SQLite3.csSQLite.sqlite3OsOpen (CS_SQLite3.sqlite3_vfs pVfs,
System.String zPath, CS_SQLite3.sqlite3_file pFile, Int32 flags,
System.Int32& pFlagsOut) [0x00000] 
  at CS_SQLite3.csSQLite.sqlite3PagerOpen (CS_SQLite3.sqlite3_vfs pVfs,
CS_SQLite3.Pager& ppPager, System.String zFilename, Int32 nExtra, Int32
flags, Int32 vfsFlags, CS_SQLite3.dxReiniter xReinit) [0x00000] 
  at CS_SQLite3.csSQLite.sqlite3BtreeOpen (System.String zFilename,
CS_SQLite3.sqlite3 db, CS_SQLite3.Btree& ppBtree, Int32 flags, Int32
vfsFlags) [0x00000] 
  at CS_SQLite3.csSQLite.sqlite3BtreeFactory (CS_SQLite3.sqlite3 db,
System.String zFilename, Boolean omitJournal, Int32 nCache, Int32 vfsFlags,
CS_SQLite3.Btree& ppBtree) [0x00000] 
  at CS_SQLite3.csSQLite.openDatabase (System.String zFilename,
CS_SQLite3.sqlite3& ppDb, Int32 flags, System.String zVfs) [0x00000] 
  at CS_SQLite3.csSQLite.sqlite3_open (System.String zFilename,
CS_SQLite3.sqlite3& ppDb) [0x00000] 
  at CS_SQLite3.SQLiteDatabase.OpenDatabase (System.String DatabaseName)
[0x00000] 
  at CS_SQLite3.SQLiteDatabase..ctor (System.String DatabaseName) [0x00000]

im using the Community.Data.SQLite.dll assembly built from the .csproj made
available in the source (my project that uses the dll is actually
boo-based, so putting the src in the project isn't really an option for
me). I built the assembly in windows/ms.net (windows 7.. so 3.5 sp1?). the
above issue doesn't occur on windows...

this is with the release version of mono 2.4.2.3 on ubuntu 9.04 .. I
understand that the error is a failure on mono's part.. but was
csharp-sqlite written with the possibility of being platform portable in
mind? I see the call to a winOpen() method in the stack trace.. is
windows/ms.net the only target platform, currently, or am I reading into
this too much?

so I guess I'm gonna file a bug with the mono team over this, but I wanted
to bring it to your attention. I don't know if you can or even want to code
around this, but if portability is a goal of the project this is something
you will want to keep an eye open for. 

thanks

Original issue reported on code.google.com by olson.je...@gmail.com on 17 Sep 2009 at 4:49

GoogleCodeExporter commented 9 years ago
here's the mono bugzilla url:
https://bugzilla.novell.com/show_bug.cgi?id=539810

Original comment by olson.je...@gmail.com on 17 Sep 2009 at 6:20

GoogleCodeExporter commented 9 years ago
Does this also happen with the latest os_win release?

Original comment by noah.hart@gmail.com on 21 Sep 2009 at 12:23

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
@gav135 .. you're looking at trunk, the current release of mono (2.4.2.3), is 
in the 
'mono-2-4-2' branch.. and there (around line 437), you'll see the offending 
code.

Original comment by olson.je...@gmail.com on 21 Sep 2009 at 3:48

GoogleCodeExporter commented 9 years ago

Original comment by noah.hart@gmail.com on 22 Sep 2009 at 12:05