[Mono-dev] Building and Running csharp-sqlite on Mono - Problems

Daniel Morgan monodanmorg at yahoo.com
Mon Apr 5 12:43:00 EDT 2010


Do you think bug 590015 is similar to bug 573477 concerning SafeFileHandle?

I was able to build csharp-sqlite using MonoDevelop on Mono on Linux by defining SILVERLIGHT in the solution.  I did not use the solution for Sileright because it was for .net 4.0.  However, I'm not sure how good the locking is.

https://bugzilla.novell.com/show_bug.cgi?id=590015

--- On Thu, 3/18/10, Robert Jordan <robertj at gmx.net> wrote:

> From: Robert Jordan <robertj at gmx.net>
> Subject: Re: [Mono-dev] Building and Running csharp-sqlite on Mono - Problems
> To: mono-devel-list at lists.ximian.com
> Date: Thursday, March 18, 2010, 10:06 AM
> On 18.03.2010 13:46, Daniel Morgan
> wrote:
> > I emailed the csharp-sqlite google group about this.
> >
> > Has anyone else tried running csharp-sqlite on Mono or
> Moonlight?
> >
> > http://groups.google.com/group/csharp-sqlite/browse_thread/thread/f54ebf64e688f8b7
> >
> > The latest snapshot of csharp-sqlite works for me with
> Visual Studio 2008 / .Net Framework 3.5.
> >
> > It also works with MonoDevelop 2.2 on Windows on .Net
> Framework 3.5.
> >
> > However, I get compile errors building csharp-sqlite
> with MonoDevelop
> > 2.0 on Mono 2.4.x on openSuse Linux.
> > The compile errors are with the ternary
> operator.  These are easy work-
> > arounds by changing the lines to an if/else
> statement.  However, when
> > I run it on Mono 2.4.x on Linux, I get a
> NotImplementedException with
> > some file safe handle property.  If I run it with
> Mono 2.6.x, I get a
> > different exception, something about a file is already
> locked.  I did
> > not try mono's svn trunk though.
> 
> You can fix this issue either by using the obsolete but
> still
> supported FileStream.Handle property in place of
> FileStream.SafeFileHandle.DangerousGetHandle ()
> or by applying the patch attached to
> 
> https://bugzilla.novell.com/show_bug.cgi?id=573477




      


More information about the Mono-devel-list mailing list