in

System.Data.SQLite

An open source ADO.NET provider for the SQLite database engine

32bit and 64bit

Last post 12-23-2009 9:58 PM by fishnet37222. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 09-18-2009 7:19 PM

    32bit and 64bit

    Is there a way to deal with the 32/64bit differences?  Visual C sharp express does not allow you to target a CPU so it always builds for AnyCPU.

     

    That causes a problem as you can not just distribute the System.Data.SQLite.DLL for 32bit because some systems may need the 64bit  version.

     Is there a workaround for this? I have not gotten into using an installe yet but maybe the installer can determine wich CPU and copy the appropriate DLL? If so how would one go about doing this?

     

    Thanks in advance.

  • 09-22-2009 12:51 AM In reply to

    • liron
    • Top 50 Contributor
    • Joined on 06-14-2008
    • Posts 29

    Re: 32bit and 64bit

    You can use a small utility that's part of the .net SDK in order to switch the EXE flag that tells .NET to force using 32 bit even on 64 bit machines.

    You can read about it Here.

    HTH

    Liron Levi (author of the SQLite Compare diff / merge utility)

  • 12-15-2009 5:55 PM In reply to

    Re: 32bit and 64bit

     Great idea.  I came to the same conclusion after doing some research.  Only one tiny little problem.  It appears the dll is signed so it's not possible to modify the corflags

  • 12-16-2009 12:02 AM In reply to

    • liron
    • Top 50 Contributor
    • Joined on 06-14-2008
    • Posts 29

    Re: 32bit and 64bit

    I'm using a hacked version of the System.Data.SQLite.dll that is not signed so I didn't see this problem :-)
  • 12-23-2009 9:58 PM In reply to

    Re: 32bit and 64bit

    You could always switch to SharpDevelop which does allow you to change the architecture.  Just go to http://www.icsharpcode.net/OpenSource/SD/ to check it out.

Page 1 of 1 (5 items)
Powered by Community Server (Commercial Edition), by Telligent Systems