> I've included the zlib1.dll into the WinFossil.zip file.
> What do you mean by "I was unable to run the WinFossil binary"?
> I'm developing and using it on Win7 x64. Do you get any error message, 
> exception
> or something like that?
>

The Fossil.exe included in WinFossil.zip now works for me.

As for WinFossil.exe, as soon as I double click it, it crashes and I get
a standard Windows message box saying "WinFossil has stopped working.
Windows is checking for a solution to the problem...". Running the
executable via an instance of the MSVS2008 debugger reveals a
BadImageFormatException:

An unhandled exception of type 'System.BadImageFormatException' occurred
in WinFossil.exe
Additional information: Could not load file or assembly
'System.Data.SQLite, Version=1.0.66.0, Culture=neutral,
PublicKeyToken=db937bc2d44ff139' or one of its dependencies. An attempt
was made to load a program with an incorrect format.

I'm confused though why it would work for you, and not me. Other than,
perhaps, on your machine it is finding the x64 System.Data.SQLite behind
the scenes, perhaps from the GAC.

Seeing these errors in the past, and knowing that System.Data.SQLite is
a native assembly (it is either x86, or x64), to fix the error, you need
to explicitly set the "Platform target:" field to x86 (in the
Properties|Build tab of WinFossil's Project Properties), and then make
sure you distribute the System.Data.SQLite x86 assembly (as you already
are). Optionally, you could provide both x86 and x64 assemblies of
System.Data.SQLite and let the user choose the right one based on their
platform.

I went to http://sqlite.phxsoftware.com/ and downloaded the 1.0.66.0
binaries package, and replaced System.Data.SQLite.dll, of your
WinFossil.zip, with the x64 version from the binaries download zip, and
WinFossil started up.




_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to